similar to: Recommended way to change defaultPackages under Windows

Displaying 20 results from an estimated 7000 matches similar to: "Recommended way to change defaultPackages under Windows"

2003 Apr 22
1
R 1.7.0: Startup error: Error in "class<-"(*tmp*, value = Class) : couldn't find function "objWithClass"
Dear R-List member, I have installed the new version of R on my PC (see system details below). I can start the RGui with http_proxy succesfully. However, I do encounter two problems: 1) After starting the Rgui the following error message is displayed (vertical dots represent omissions of output): R : Copyright 2003, The R Development Core Team Version 1.7.0 (2003-04-16) . . . . Error in
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
2008 Apr 13
1
.Rprofile, date tagging history, loading packages
Dear R-Helpers, I'm fiddling with my .Rprofile in Windows XP & R 2.7.0 Beta. I prefer to manually save my workspace but automatically save my command history via the .Rprofile. That is working fine once I found that "utils::" was required before the loadhistory & savehistory functions. What I would like to do is add a separator line with a date between the histories of each
2010 Mar 14
3
R and R commander
Hi, I am a student studying Biostatistics at University. We have been advised to install R and R commander. I managed to do this successfully, except I wasn't able to complete the final step - which would enable both R and R commander to launch when I open the R icon on my desktop. However, I haven't been able to save it and for this to work. The last instructions we were given are:
2004 Jan 20
4
Loading packages at startup
Hi, I use the Windows R GUI. I frequently use (or have my students use) foreign and survival packages. I would like to make them part of the basic start-up package set (like base, ctest, etc.) using something short of recompiling a special Windows version of R. Is this possible? I examined the autoload() command but this seems to target a single command of package, and only apply during a
2005 Mar 09
1
delay of warning for things in .Rprofile
Hi all, I was playing with R-devel 2005-03-08 on winXP Pro (installed from Duncan's installer). My .Rprofile contains: options(defaultPackages=c(getOption("defaultPackages"), "mypkg"), chmhelp=TRUE) but "mypkg" has not yet been installed in the library/ directory of this installation. When Rgui starts, I do not get any error or warning, but upon
2019 Sep 08
6
Error: package or namespace load failed for ‘utils
Hi, When starting an embedded R I encounter the following issue under certain conditions: ``` Error: package or namespace load failed for ?utils? in if (.identC(class1, class2) || .identC(class2, "ANY")) TRUE else {: missing value where TRUE/FALSE needed ``` (more such errors for grDevices, graphics, and stats) And in the end: ``` Warning messages: 1: package ?utils? in
2009 Mar 30
1
Can I read a file into my workspace from Rprofile.site?
I am running R version 2.8.1 on Windows XP OS. When I launch R, I would like to automatically read a file containing my database connections, user ids, and passwords into my workspace. I tried including this in my Rprofile.site file: ... local({ old <- getOption("defaultPackages") options(defaultPackages = c(old, "Rcmdr","RODBC", "utils")) }) .First
2019 Sep 08
1
Error: package or namespace load failed for ‘utils
Also, check the settings of R_HOME and/or R_LIBS. Bill Dunlap TIBCO Software wdunlap tibco.com On Sun, Sep 8, 2019 at 9:58 AM William Dunlap <wdunlap at tibco.com> wrote: > Look at section 6.1 of the R Installation and Admin manual. > > 6.1 Default packages > > The set of packages loaded on startup is by default > > > getOption("defaultPackages") > [1]
2007 Mar 28
1
Problem with adding packages to default start-up list
After reading the help files (?Startup) and using RSiteSearch("defaultPackages"), I have been trying to add several packages to my default startup list using the following code: local({ old<-getOption("defaultPackages") options(defaultPackages=c(old,"lattice","RODBC") }) Subsequently, when I query the default list using:
2004 Jun 16
1
start-up problems
Hi, After some reading and experimentation I found that I cannot solve this problem: 1. I am starting R and check: > system("pwd") /home/woodstock/hoffmacw/R/test > system("echo $HOME") /home/woodstock/hoffmacw > system("echo $R_PROFILE") /home/woodstock/hoffmacw/R > system("ls $R_PROFILE/.Rprofile") /home/woodstock/hoffmacw/R/.Rprofile
2005 Dec 13
1
R_PROFILE on Windows
Dear R-devel, There seems to be a bug in the Startup section, regarding the R_PROFILE environment variable in Windows. If not a bug in the Startup itself, perhaps a bug in the documentation. According to ?Startup: Then R searches for the site-wide startup profile unless the command line option '--no-site-file' was given. The name of this file is
2008 Jan 16
3
Rprofile.site not executed?
It seems that my Rprofile.site file is not executed when I start R. To test this I included the following code in that file: .First <- function(){ cat("\nWelcome at", date(), "\n") flush.console() } When I start R the message above is not displayed. I am running R 2.6.1 (rgui.exe) under Vista Home Premium. The Rprofile.site is in the etc folder and the R_PROFILE
2007 Mar 26
1
Problem in loading all packages all at once
Hi All Please see the Rprofile file which i have modified as follows and after that when I start R then I see that R says to me "TRUE" for all the packages implying that all loaded at once. But when i try to use commands as simple as help("lm"), it doesnt work nor any of the menu "Packages" is not working. Although the regression using lm ( Y ~ X ) is working
2003 Jun 12
3
defaults in R: packages, .Rhistory
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: > search() [1] ".GlobalEnv" "package:methods" "package:ctest" "package:mva" [5] "package:modreg" "package:nls" "package:ts" "Autoloads" [9]
2009 Jun 24
1
how to undo automatic loading of packages?
I wanted to try out package distrMod, so I did > install.packages('distrMod') > library(distrMod) and played around, saved and quit. Now whenever I start up in this directory, I get distr and lots of other stuff loaded and lots of messages. How do I keep it from automatically loading, other than starting over in another directory? I read ?Startup, but I couldn't suss out
2009 May 10
2
Unintended loading of package:datasets
The dataset package is being loaded apparently by one of the packages that I am using. The loading of the datasets takes a long time and I would like to eliminate it. I thought the datasets were effectively examples so don't understand why they would be required at all. 1) How can I determine what is causing the datasets to be loaded? 2) How can I stop them from doing so? I am using the
2001 Mar 29
1
Detaching "ctest"
Hi Everyone, We have just upgraded to R-1.2.1, and I note, in contrast to R-1.1.1, that ctest is now loaded automatically. The mechanism for this is to create a .First function in base: .First <- function() { require("ctest", quietly=TRUE) } Now I don't want ctest, but I find that simply putting if (length(grep("ctest", search()))) detach(package:ctest) into
2003 Dec 05
1
grid packages since R-1.7.1
I'm having a spot of bother using code that worked with R-1.7.1 but will not work with 1.8.1. The beginning of the saga is with grid.polygon ostensibly not findable. One does exist in ..../R-1.8.1/library/grid/R, and when I specifically load the grid package (which probably isn't a good idea), it starts finding fault with the length of vectors being unequal. I suspect the lengths of the
2007 Dec 14
0
options("defaultPackages") was not found [C1]
hello, i'm having a problem creating a custom package. i've found other posts on the web that describe a similar problem but i haven't found any solution. please advise. the error in the build process is checking DESCRIPTION meta-information ... ERROR During startup - Warning messages: ' in: library(package, lib.loc = lib.loc, character.only = TRUE, logical = TRUE, in