Displaying 20 results from an estimated 4000 matches similar to: ".Rprofile files (was R newbie configuration)"
2006 Jan 04
1
R newbie configuration
I think I did enough reading on my
Own about startup ( part of the morning
And most of this afternoon )
to not feel uncomfortable asking
for confirmation of my understanding of this startup stuff.
Obviously, the startup process is more complicated
Than below but, for my R newbie purposes,
It seems like I can think of the startup process as follows :
Suppose my home directory =
2004 Oct 20
2
par() defaults in Rprofile
Dear List,
I've tried to set default par() in .Rprofile by putting the following in
the .First function:
setHook(packageEvent("graphics", "onLoad"),
function(...) {graphics::par(cex.axis=1.5, cex.lab=2, las=1)}
)
My goal was to set par() defaults without opening a device everytime at
startup. However, the next plot I create doesn't show these
2004 Apr 28
2
Rtemp directories accumulating over time
Hola!
There is a nuisance that the number of directories with name starting
Rtmp (and always empty) in my temp directory is increasing over time.
I put the following in my .Rprofile:
tmp0001 <- tempdir()
setHook( packageEvent("base","onUnload"),
function(...) unlink( tmp0001, recursive=TRUE) )
which solves part of the problem, but not all. So there are also
2008 May 23
0
A problem about the Japanese font of OSX
Many Japanese were troubled with the setting of the font.
I added the following to .Rprofile first.
setHook(packageEvent("grDevices", "onLoad"),
function(...){
grDevices::quartzFonts(sans=grDevices::quartzFont(
c("Hiragino Kaku Gothic Pro W3",
"Hiragino Kaku Gothic
2004 Jul 21
2
add more data to a data file, problem with .Rprofile
Hi,
Is there a way to incorporate an R object x to a file already containing R objects?
It seems that 'save' is not capable to do this. If I save x to a file containing
previously saved data, then I will lose this data.
I use the funcion hsv in .Rprofile but it is recognized. Couriously, if I source .Rprofile
when R is already running I do not get any error message.
Thank you.
2006 Sep 18
2
problem in font
Hi,
after a debian upgrade my dev.copy2eps dont work anymore. I have this message:
Error in matchFont(postscriptFonts(family)[[1]], old$encoding) :
unknown font
I try to change the font family in my .Rprofile:
setHook(packageEvent("graphics", "onLoad"),
function(...) {
grDevices::ps.options(family="ComputerModern")
} )
But it no fix
2004 Apr 13
1
par() in .Rprofile
Dear all
I installed new version (from binaries) and I noticed that
par(bg="white")
which I have in my .Rprofile causes error message on startup
But if I issued this command immediately after startup everything worked as
expected. I did not see any note in changes file or elsewhere.
Should I specify white background in .Rprofile differently?
Or is there some other recommended way
2007 Jan 15
1
Conflict in .Rprofile documentation FAQ vs. Help?
Hi folks,
I note that in the general FAQ's we have
7.25 Why did my .Rprofile stop working when I updated R?
Did you read the NEWS file? For functions that are not in the base
package you need to specify the correct package namespace, since the
code will be run before the packages are loaded. E.g.,
ps.options(horizontal = FALSE)
help.start()
needs to be
2006 Jan 09
6
R newbie example code question
Sometimes I print out a package
and read about it and there
are sometimes nice examples
that I would like to run myself.
Is there a way to bring them
into R from the package or
are they only meant to be typed
in manually ? If manual is the
only way, that's fine. I was
just checking whether there was
a quicker way. Thanks.
Mark
2005 Aug 11
1
Registering S3 class from external package
The package I'm working on can extract data from external
packages but would otherwise have no dependency on them.
However, I desire to be able to dispatch based on an
external S3 class if its package is attached (.First.lib).
My code is S4-based and its package has NAMESPACE.
Registering the external class prior to the other
package being attached doesn't seem to work so I am
attempting
2005 Dec 29
1
R and read.irts
I thought r-help let you
attach asci files but
I don't think it does now
so below is a sample of my data set.
Thanks again.
09:40:08.5238,67.00,33
09:40:09.1968,67.00,2
09:40:09.7945,67.00,2
09:40:09.7975,67.00,2
09:40:09.8318,66.99,-3
09:40:17.6335,66.95,3
09:41:09.3393,66.95,6
09:41:11.1482,66.95,-1
09:42:07.4552,66.90,-5
09:42:12.5823,66.85,-5
09:42:14.4329,66.80,-2
2013 Jul 15
2
suppress startup messages from default packages
Hi all,
several packages print messages during loading. How do I avoid to see
them when the packages are in the defaultPackages?
Here is an example.
With this in ~/.Rprofile
,----[ ~/.Rprofile ]
| old <- getOption("defaultPackages")
| options(defaultPackages = c(old, "filehash"))
| rm(old)
`----
I get as last line when starting R:
,----
| filehash: Simple key-value
2006 Dec 18
0
.Rprofile not executed completely in 2.5.0
Dear all
I do not usually post to R-devel, but I started to test R-2.5.0dev
and encountered strange difference from 2.4.0 when loading Rgui under
WXP. Both R builds are from CRAN executables and part of .Rprofile
file is not executed in R-2.5.0.
Here is my .Rprofile file contents
---------------------------
options(chmhelp=TRUE)
require(graphics)
require(utils)
2004 Apr 25
2
.Rprofile error: ps.options
After upgrading to R 1.9.0, I started getting the following error on
startup:
Error: couldn't find function "ps.options"
My .Rprofile file contains this line:
ps.options(paper="letter",horizontal=F)
If I type "source ~/.Rprofile" after R starts, it works just fine. Did
something related to startup change in R 1.9.0?
-akop
2023 Mar 21
1
Rprofile.site and automatic installation of missing packages
On 21/03/2023 9:58 a.m., PIKAL Petr wrote:
> Hallo Duncan
>
> Tested but does not work so something other must be wrong.
>
> R version 4.2.2.
>> installed.packages()[,"Package"]
> base boot class cluster codetools compiler datasets foreign graphics grDevices grid KernSmooth
2004 Oct 08
0
library in R2.0.0 - summary
Thanks to Andy Liaw and prof.Ripley for their comments.
I finally managed my function set work without need for proper
installation. However I must try it sometimes.
I got tools from
http://www.murdoch-sutherland.com/Rtools/tools.zip
but I did not install Pearl yet. I tried
make pkg-fun
which resulted in sequence of errors which I corrected according
what I was told by screen and
2004 Oct 07
1
library in R2.0.0
Hi all
I upgraded to 2.0.0 version and did everything as I used to do
before.
I installed windows binary, copy/paste other than bundled
packages.
I got e.g.
> library(chron)
Error in library(chron) : 'chron' is not a valid package -- installed <
2.0.0?
so I loaded it from CRAN and everything worked OK except my
own personal functions (they are not on CRAN). So I went
2004 Aug 21
4
loadhistory() in .Rprofile ?
dear wizards: my .Rprofile has just one command for testing,
loadhistory("~/.Rhistory")
but this gives me an error on R startup:
Error: couldn't find function "loadhistory"
Invoking loadhistory() as the first interactive command works fine;
incidentally, I believe loadhistory() in the .Rprofile worked in
earlier or other platform R releases, too.
Is the .Rprofile
2006 Jan 11
2
a series of 1's and -1's
Does anyone know of a simple test
in any R package that given
a series of negative ones and positive
ones ( no other values are possible in the series )
returns a test of whether the series is random or not.
( a test at each point would be good but
I can use the apply function to implement
that ) ?
thanks.
2006 Aug 31
0
Summary and thanks: .Rprofile under Windoze.
Many thanks to all who responded to my cri de coeur: Charles Annis,
John Bollinger, Petr Pikal, Brian Ripley, Duncan Murdoch, Dan
Nordlund, and Richard Heiberger. (I don't think --- I hope --- I
haven't missed anyone.)
The essential solution to my problem was indeed to eliminate that
@#@$#@$^#@ ``.txt'' extension from the filename. I.e. the file must
be called