[R] Odp: Problem with package compilation
ligges at statistik.tu-dortmund.de
Sat Dec 17 20:18:05 CET 2011
On 16.12.2011 08:04, Petr PIKAL wrote:
>> I have a R package with some functions made all of then only with R
>> code. I use the command R CMD build to build a package that I can
>> install on linux, windows or mac, because all the code is only R code.
>> But I have some problems with R version. For each new R version I need
>> to rebuild the package to be install in this new version. It is possible
>> to make a package without this R Version dependence? I know that in a
>> little cases I need to adapt my package when R change some of this basic
>> functions, but it is very rare.
>> Any idea? Is only a tag to put on my package? Or this is the correct
>> way, maintain the R version dependence?
> Not sure if this is "correct" way but on windows I usually only copy my
> package from one R version to another.
This may or may not work. For example, with the change of the help
system for R-2.10.0, all packages had to be reinstalled. With R-2.14.0,
all packages must have a NAMESPACE that is otherwise genertated on
installation. There may other changes that effect less (but still some)
packages for other R releases, hence it is always advisable to
re-install after you upgraded from R-x.y.z to a new R-x.y+1.z* release.
update.packages(checkBuilt=TRUE) does that for CRAN and BioC (if a BioC
repository / mirror is chosen) packages.
>> 6Ş lei - Sua produtividade varia como
>> (tempo produtivo gasto por dia)^1.000.
>> 7Ş lei - Sua produtividade também varia como
>> 1/(seu atraso na análise dos dados obtidos)^1.000.
>> --Herman, I. P. 2007. Following the law. NATURE, Vol 445, p. 228.
>>> Prof. Ronaldo Reis Júnior
>> | .''`. UNIMONTES/DBG/Lab. Ecologia Comportamental e Computacional
>> | : :' : Campus Universitário Prof. Darcy Ribeiro, Vila Mauricéia
>> | `. `'` CP: 126, CEP: 39401-089, Montes Claros - MG - Brasil
>> | `- Fone: (38) 3229-8192 | ronaldo.reis at unimontes.br
>> | http://www.ppgcb.unimontes.br/lecc | LinuxUser#: 205366
>> [[alternative HTML version deleted]]
>> R-help at r-project.org mailing list
>> PLEASE do read the posting guide
>> and provide commented, minimal, self-contained, reproducible code.
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help