> -----Ursprüngliche Nachricht----- > Von: William Dunlap [mailto:wdun...@tibco.com] > Gesendet: Dienstag, 17. August 2010 22:25 > An: Janko Thyson > Betreff: RE: [Rd] [R] Problems building own package (Error: "package > hasbeen build before R-2.10.0") > > > ... > > > > R CMD check mypackage works fine (no errors, no warnings) > > > > > > > > R CMD build mypackage works fine (no errors, no warnings) > > > > > > > > R CMD INSTALL -library="C:\R\R-2.11.1\library" > > > > "something\mypackage\mypackage_1.0.tar.gz" works fine (no > > errors, no > > > > warnings) > > > > > > > > > > > > > > > > However, when I try loading the package in an R-Session (version > > > 2.11.1) via > > > > "library(mypackage)", R complains about the package being build > > > before > > > > version R-2.10.0 and tells me to rebuild it. > > Start R by typing 'R' (no other arguments) from the same > command window that you used for the 'R CMD ...' commands. > You ought to be able to load the package without warning > from that session. Compare the output of Sys.getenv("R_HOME") > and/or print(version) in that session and the in a session > that could not load the package without warnings. > > Bill Dunlap > Spotfire, TIBCO Software > wdunlap tibco.com
Hi Bill, thanks for the suggestion. I don't quite get it, but even though version 2.11.1 was the only one in my PATH, it was always version 2.9.1 that was called when using R CMD. I could only resolve it by uninstalling version 2.9.1, which is totally fine considering we're at 2.11.1 now ;-) Janko > > > > > > > > > So the R that is in your PATH is < 2.10.x > > > Change your PATH and add the R version your are actually working > > > with.... > > > > As I wrote: "My PATH is set up as explained in the R-Admin > > manual. Also, the > > only R version stated there is "C:\R\R-2.11.1\bin;". > > > > > Uwe Ligges > > > > > > > > > > > > > > > > > > Could this possibly be due to the fact that I have multiple R > > > versions > > > > installed (this also includes the most recent one, though)? > > > > > > > > > > > > > > > > To provide you with some details: > > > > > > > > - Running Windows XP > > > > > > > > - All of my R versions are under "C:\R" (versions 2.9.2, > > > 2.10.1, > > > > 2.11.1). > > > > > > > > - I installed Rtools (version 2.1.2) to "C:\Rtools" and > > > pointed it > > > > to "C:\R" (as this was the default) to interact with R > > (should this > > > maybe > > > > have been "C:\R\R-2.11.1"?). I also installed everything else > > > necessary to > > > > build packages (Inno Setup etc.). > > > > > > > > - My PATH is set up as explained in R-Admin manual. > Also, > > > the only > > > > R version stated there is "C:\R\R-2.11.1\bin;". > > > > > > > > - I updated the DESCRIPTION file and specified > > all .Rd files > > > > correctly. > > > > > > > > > > > > > > > > Any idea what I'm doing wrong? > > > > > > > > > > > > > > > > Thanks a ton, > > > > > > > > Janko > > > > > > > > > > > > > > > > _____ > > > > > > > > > > > > > > > > Janko Thyson > > > > <mailto:holger.ko...@ku-eichstaett.de> janko.thy...@ku- > > > eichstaett.de > > > > > > > > Catholic University of Eichstätt-Ingolstadt > > > > Ingolstadt School of Management > > > > Statistics and Quantitative Methods > > > > Auf der Schanz 49 > > > > D-85049 Ingolstadt > > > > > > > > <http://www.wfi.edu/lsqm> www.wfi.edu/lsqm > > > > > > > > Fon: +49 841 937-1923 > > > > Fax: +49 841 937-1965 > > > > > > > > This e-mail and any attachment is for authorized use by > > the intended > > > > recipient(s) only. It may contain proprietary material, > > confidential > > > > information and/or be subject to legal privilege. It should not > be > > > > copied, disclosed to, retained or used by any other party. > > > > If you are not an intended recipient then please promptly > > delete this > > > > e-mail and any attachment and all copies and inform the sender. > > > > > > > > > > > > > > > > _____ > > > > > > > > > > > > > > > > > > > > [[alternative HTML version deleted]] > > > > > > > > > > > > > > > > > > > > ______________________________________________ > > > > r-h...@r-project.org mailing list > > > > https://stat.ethz.ch/mailman/listinfo/r-help > > > > PLEASE do read the posting guide http://www.R- > project.org/posting- > > > guide.html > > > > and provide commented, minimal, self-contained, reproducible > code. > > > > ______________________________________________ > > R-devel@r-project.org mailing list > > https://stat.ethz.ch/mailman/listinfo/r-devel > > ______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel