Skip to content

defaults in R: packages, .Rhistory

4 messages · Jacob Wegelin, Roger D. Peng, Brian Ripley +1 more

#
With the current version (rw1070), every time I start R it loads a whole
bunch of packages, many of which I do not need in a typical session:
[1] ".GlobalEnv"      "package:methods" "package:ctest"   "package:mva"
[5] "package:modreg"  "package:nls"     "package:ts"      "Autoloads"
[9] "package:base"

Loading all these packages makes R slow to start up, and I presume it
uses up memory too.

Is there a reason that all these packages load automatically? Is
there some way to stop this from happening, by changing some default?
_
platform i386-pc-mingw32
arch     i386
os       mingw32
system   i386, mingw32
status
major    1
minor    7.0
year     2003
month    04
day      16
language R

A separate question also related to defaults:

Is there a way to get R to refrain from truncating the .Rhistory file
(removing the earliest saved commands), so that .Rhistory might serve
as a permanent record of every command issued?

Thanks for any info

Jake
#
You can modify your sitewide Rprofile file (which for me is in 
C:\Program Files\R\rw1070\etc) and insert the line:

options(defaultPackages = character())

This should start R with no additional packages.  More information like 
this can be found in ?Startup.

-roger
Jacob Wegelin wrote:

            
#
Please use a parseable subject line, or two separate messages for two 
unrelated Qs.
On Wed, 11 Jun 2003, Jacob Wegelin wrote:

            
Not much memory, and it is only methods which adds appreciable slowness.
Yes.  (You didn't ask what it was.)
Yes, and that is in the CHANGES file: please read it.
Not in RGui, *but* you can change the buffer size in the Rconsole file
or the Preferences.
#
On 12 Jun 2003 at 7:36, Prof Brian Ripley wrote:

            
.
.
.
Or you can set the environment variable R_HISTSIZE

Kjetil Halvorsen