similar to: The install.R and R_PROFILE.R files

Displaying 20 results from an estimated 20000 matches similar to: "The install.R and R_PROFILE.R files"

2004 Aug 08
1
Use of R_PROFILE.R / install.R
According to R-exts: The second purpose for @file{install.R} is to hold code that needs to be executed each time the package is attached, after the image is loaded. Few packages have a need for such code so @file{install.R} is normally an empty file. The optional file @file{R_PROFILE.R} is executed before the code in the @file{R} subdirectory and should be used to set up an
2006 Mar 21
1
build R on windows
Hi, I'm not sure if this question has been answered before, but when I execute command "Rcmd INSTALL --build nws" to build an R package on Windows, the build process got stucked on the save image step. Here is the snapshot of the build process, --- Making package nws ---- adding build stamp to DESCRIPTION installing NAMESPACE file and metadata installing R files
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
2009 Mar 19
2
How to set R_PROFILE conditional on batch or interactive mode
I am running R 2.8.1 on SUSE Linux. I would like to be able to set R_PROFILE to two different possibilities. One when R is called by R CMD BATCH and another any other time. Is this possible? Mark Lyman, Statistician Engineering Systems & Integration, ATK
2004 Aug 12
3
The Depends: field of a package is now used by library()
In R-devel, the Depends: field in the DESCRIPTION file is now used by library() to load the named packages before the current package, and also to set up the environment to save images and prepare for lazy loading. Would authors please use a minimally necessary set of packages in Depends, and put others in Suggests: -- the distinction is made in `Writing R Extensions'. On the other hand,
2008 Apr 23
2
ROracle error at step 1
Hi I Can't connect to the Oracle database, any tips? Has anybody actually got ROracle up and running on windows? >> unable to find an inherited method for function "dbConnect", for signature "OraDriver" I can happily connect to the same database through RODBC. Oracle client, version 9.2 installed, amongst others. Sean > library(DBI) > library(ROracle)
2005 Jan 23
3
error preparing a package for lazy loading with R CMD
Dear Lister, I work with R 2.0.1 and Windows XP, and meet a strange trouble trying to make a R package with a make-package.bat file John Fox has kindly provided (see detailed script below). I am working with it since some months with excellent results (I do'nt use compiled C code so far). Just adding a new function in the R directory today, when running make-package and thus excuting
2004 Dec 18
1
More on Lazy loading errors building its package in a chroot
From: Dirk Eddelbuettel <edd@debian.org> > I now have the package built in a chroot -- but at the price of setting > 'LazyLoad: no' in DESCRIPTION. > > I do not quite understand why that is needed. Can someone else help? I can > provide the following pointers for its-1.0.4 > I have had problems on Windows in which I had to pay the same price and it turned out
2005 Feb 08
1
Pre-building lazyload DB
Hi all, Bioconductor has several metaData packages that contain quite large data sets. In the past, these data were simply held in the /data directory of the package as .rda files and load()ed as needed. Converting to using lazy data loading may have memory and performance advantages, but for the larger metaData packages the installation is painfully slow (it has taken > 30 min to install a
2004 Nov 07
1
creating a package without lazy loading
When I do a R CMD build --binary then I get the messages at the end of this post unless I specify LazyLoad: no in the DESCRIPRION file. If I do that then everything proceeds smoothly. R CMD check proceeds smoothly in either case. Is there something I should be aware of that is causing this message when I do not turn off lazy loading? I am using Windows XP and R 2.0.1 beta
2004 Sep 18
1
Rcmd problems and questions, lazyloading
Hola! I got past the problems I asked about two days ago, thanks. No I am updating CRAN package asypow (the daily package check on CRAN gave warnings due to .Rd problems, fixed). Now it PASSED Rcmd check (WindowsXP home edition, rw2000dev, on a new toshiba laptop, if that matters.) but then Rcmd build --binary gives problems: . . . preparing package asypow for lazy loading Error in
2006 Jul 18
2
send a list from R to C
Hello at all ! What is the correct form to give a list form R (e.g. list(c(-1,1), "TestFile") ) to C. I have no problems, if I don't use character and I have also no problems to give a character vector form R to C. But, if I combine real and strings in a list then I don't know the correct syntax. I try it with following (an example): SEXP writeFile(SEXP headerR){ Image
2008 Nov 13
1
Package install problem on Windows (PR#13284)
Full_Name: Lars Hansen Version: 2.8.0 OS: Windows XP Pro x64 SP2 Submission from: (NULL) (71.39.177.36) Hi, I have run into a problem using "R CMD INSTALL" with the "--with-package-versions" option under Windows. It is a bit obscure, which could explain why other people have not run into it. We happen to have two packages with almost the same name. One name is a subset of
2007 Jun 12
1
PATCH: install inst/ before doing lazyload on Windows
Hi, On Windows, package files in the inst/ subdir are installed after the lazyload creation. This differs from Linux where inst/ is installed _before_ lazyload creation. Since packages may need data in inst, I think the order on Windows should be changed. Perhaps like this: diff --git a/src/gnuwin32/MakePkg b/src/gnuwin32/MakePkg index 57af321..868e8f1 100644 --- a/src/gnuwin32/MakePkg +++
2004 Nov 16
2
problems with compiling a package
Hello, I am trying to compile packages for R2.0.0 patch in a win XP machine. Most of the packages compile without problems, with C or FTG or only R. Now some packeges give the following error which I do not understand how to correct ... preparing package xxx for lazy loading Error in "names <- .default"('*tmp*',value=c("R","Platform","Date", :
2005 Jun 29
2
"all connections are in use" error during lazyload stage of packa ge installation
Hi, I suddenly started getting strange errors while working on my caTools package: >RCMD install C:/programs/R/rw2011/src/library/caTools ...... preparing package caTools for lazy loading Error in file(file, "r", encoding = encoding) : all connections are in use Execution halted make: *** [lazyload] Error 1 *** Installation of caTools failed *** I searched
2004 Dec 03
0
Package dev: Depends, require, SaveImage best practices?
I'm trying to sort out some best practices for package development and understand some behavior of R CMD check that has me confused. Best practice question: If a package foo appears in the Depends field in the DESCRIPTION file of mypkg, should I refrain from using require(foo) in the R source files of mypkg? The Writing R Extensions manual says this about the Depends field: ... the
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
2012 Apr 11
1
Byte compilation of packages on CRAN
In DESCRIPTION if I set LazyLoad to 'yes' will data.table (for example) then be byte compiled for users who install the binary package from CRAN on Windows? This question is based on reading section 1.2 of this document : http://www.divms.uiowa.edu/~luke/R/compiler/compiler.pdf I've searched r-devel and Stack Overflow history and have found questions and answers relating to R CMD
2006 May 17
1
Non-ASCII chars in R code
The report on R_help about problems loading package irr (in a UTF-8 locale, it seemed) prompted me to look a little deeper. There are quite a few packages with Latin-1 chars in their .R files, and a couple in UTF-8. Apart from non-ASCII chars in comments, this is a problem as the code concerned cannot be represented in some locales R runs in (for example Japanese on Windows). It happens