Dear all I noticed from NEWS 2.11.0,dev SIGNIFICANT USER-VISIBLE CHANGES o Packages must have been installed under R 2.10.0 or later, as the current help system is the only one now supported. So I tried to follow instructions in manual, Duncan Murdoch presentation and help pages to prepare and accomplish installation of a set of functions I use. However in R 2.11.0dev and too in R 2.10.0dev I was not able to finish it. I installed Rtools210 I opened commander window and or R program with --vanilla option. I coppied all my functions and data to R and run package.skeleton> package.skeleton(list=ls(), name="fun")Creating directories ... Creating DESCRIPTION ... Creating Read-and-delete-me ... Saving functions and data ... Making help files ... Done. Further steps are described in './fun/Read-and-delete-me'. Package structure seems to be ok> list.files("D:/temp/fun", recursive=TRUE)[1] "data/modely1.rda" "data/modely2.rda" "data/modely3.rda" [4] "data/stand.rda" "DESCRIPTION" "man/addLine.Rd" [7] "man/azce.Rd" "man/bayerf.h.Rd" "man/bayerf.Rd" <snip> [112] "R/tridy.R" "R/trigrid.R" "R/truehist.R" [115] "R/voda.tlak.R" "R/vodiv2rozkl.R" "R/warmcold.R" [118] "R/weighted.mean.R" "R/weighted.var.R" "R/write.excel.R" [121] "Read-and-delete-me">I changed PATH by PATH = D:\programy\Rtools\bin; D:\programy\Rtools\perl\bin; D:\programy\Rtools\MinGW\bin; D:\programy\R-2.10.0dev\bin; %PATH% When I try to do> install.packages("D:/temp/fun", repos=NULL, type="source")sh nen? n zvem vnit?n?ho ani vn?j??ho p??kazu, spustiteln?ho programu nebo d vkov?ho souboru. Warning message: In install.packages("D:/temp/fun", repos = NULL, type = "source") : installation of package 'D:/temp/fun' had non-zero exit status which basically tells that sh is not a name of command, exe or bat file. The same I get when I try to run D:\temp R CMD INSTALL fun Please can you give me any suggestion for making installation work. I remember when going from 1.9 to 2.0 versions it was also necessary to install my bunch of functions, however at that time I need to use something like make, make install or so and gather all necessary programs myself. Best regards Petr
On 10/16/2009 9:31 AM, Petr PIKAL wrote:> Dear all > > I noticed from NEWS 2.11.0,dev > SIGNIFICANT USER-VISIBLE CHANGES > > o Packages must have been installed under R 2.10.0 or later, as > the current help system is the only one now supported. > > So I tried to follow instructions in manual, Duncan Murdoch presentation > and help pages to prepare and accomplish installation of a set of > functions I use. However in R 2.11.0dev and too in R 2.10.0dev I was not > able to finish it. > > I installed Rtools210 > > I opened commander window and or R program with --vanilla option. > > I coppied all my functions and data to R and run package.skeleton > >> package.skeleton(list=ls(), name="fun") > Creating directories ... > Creating DESCRIPTION ... > Creating Read-and-delete-me ... > Saving functions and data ... > Making help files ... > Done. > Further steps are described in './fun/Read-and-delete-me'. > > Package structure seems to be ok > > >> list.files("D:/temp/fun", recursive=TRUE) > [1] "data/modely1.rda" "data/modely2.rda" "data/modely3.rda" > [4] "data/stand.rda" "DESCRIPTION" "man/addLine.Rd" > [7] "man/azce.Rd" "man/bayerf.h.Rd" "man/bayerf.Rd" > > <snip> > > [112] "R/tridy.R" "R/trigrid.R" "R/truehist.R" > [115] "R/voda.tlak.R" "R/vodiv2rozkl.R" "R/warmcold.R" > [118] "R/weighted.mean.R" "R/weighted.var.R" "R/write.excel.R" > [121] "Read-and-delete-me" >> > > I changed PATH by > > PATH = D:\programy\Rtools\bin; D:\programy\Rtools\perl\bin; > D:\programy\Rtools\MinGW\bin; D:\programy\R-2.10.0dev\bin; %PATH% > > When I try to do > >> install.packages("D:/temp/fun", repos=NULL, type="source") > sh nen? n zvem vnit?n?ho ani vn?j??ho p??kazu, > spustiteln?ho programu nebo d vkov?ho souboru. > Warning message: > In install.packages("D:/temp/fun", repos = NULL, type = "source") : > installation of package 'D:/temp/fun' had non-zero exit status > > which basically tells that sh is not a name of command, exe or bat file.There should be a sh.exe in d:\programy\Rtools\bin if that's where you installed the Rtools. Are you sure you have the path set the way you think you do? Remember that PATH is an environment variable, and environment variable settings are local: so setting the PATH in a CMD window has no effect on R or any other command window. You need to use the Control Panel to set the default system path, and then restart any process that needs to see it. Duncan Murdoch> > The same I get when I try to run > > D:\temp R CMD INSTALL fun > > Please can you give me any suggestion for making installation work. I > remember when going from 1.9 to 2.0 versions it was also necessary to > install my bunch of functions, however at that time I need to use > something like make, make install or so and gather all necessary programs > myself. > > Best regards > Petr > > > > > > ______________________________________________ > R-help at 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.
On 10/19/2009 7:59 AM, Petr PIKAL wrote:> Hi > > r-help-bounces at r-project.org napsal dne 19.10.2009 12:24:47: > >> Petr PIKAL wrote: >> > Hi >> > >> > Duncan Murdoch <murdoch at stats.uwo.ca> napsal dne 16.10.2009 17:01:59: >> > >> > >> >> On 10/16/2009 9:31 AM, Petr PIKAL wrote: >> >> >> >>> Dear all >> >>> >> >>> I noticed from NEWS 2.11.0,dev >> >>> SIGNIFICANT USER-VISIBLE CHANGES >> >>> >> >>> o Packages must have been installed under R 2.10.0 or later, > as >> >>> the current help system is the only one now supported. >> >>> >> >>> So I tried to follow instructions in manual, Duncan Murdoch >> >>> >> > presentation >> > >> >>> and help pages to prepare and accomplish installation of a set of >> >>> functions I use. However in R 2.11.0dev and too in R 2.10.0dev I was > >> >>> >> > not >> > >> >>> able to finish it. >> >>> >> >>> >> > >> > < snip> >> > >> >> That should have worked. Just to confirm, try running R from that shell > >> (using either Rgui or R), and then print Sys.getenv("PATH") and make >> sure it shows what you expected. > > It seems like the path is set but system does not accepts it. Rgui does > not start until I switch to its bin directory. Sys.getenv than shows > "correct" path. > > See attached pictures.I believe the problem is the spaces that you have in your PATH. (You have spaces after the semi-colons, before the "D:\" beginning of several entries.) If you remove those it should work. Duncan Murdoch
Hi Upeeee! I finally get it work. For the record: 1. problem - spaces in path definition 2. problem - customised Rprofile.site which throws error when trying to load some packages After starting with all customised values disabled R CMD INSTALL .... worked as charm. Thank you very much, it is a long time I dealed with DOS and path setting. However now I will remember forever - no spaces -. Best regards Petr Duncan Murdoch <murdoch at stats.uwo.ca> napsal dne 19.10.2009 14:18:23:> On 10/19/2009 7:59 AM, Petr PIKAL wrote: > > Hi > > > > r-help-bounces at r-project.org napsal dne 19.10.2009 12:24:47: > > > >> Petr PIKAL wrote: > >> > Hi > >> > > >> > Duncan Murdoch <murdoch at stats.uwo.ca> napsal dne 16.10.200917:01:59:> >> > > >> > > >> >> On 10/16/2009 9:31 AM, Petr PIKAL wrote: > >> >> > >> >>> Dear all > >> >>> > >> >>> I noticed from NEWS 2.11.0,dev > >> >>> SIGNIFICANT USER-VISIBLE CHANGES > >> >>> > >> >>> o Packages must have been installed under R 2.10.0 orlater,> > as > >> >>> the current help system is the only one now supported. > >> >>> > >> >>> So I tried to follow instructions in manual, Duncan Murdoch > >> >>> > >> > presentation > >> > > >> >>> and help pages to prepare and accomplish installation of a set of> >> >>> functions I use. However in R 2.11.0dev and too in R 2.10.0dev Iwas> > > >> >>> > >> > not > >> > > >> >>> able to finish it. > >> >>> > >> >>> > >> > > >> > < snip> > >> > > >> > >> That should have worked. Just to confirm, try running R from thatshell> > > >> (using either Rgui or R), and then print Sys.getenv("PATH") and make > >> sure it shows what you expected. > > > > It seems like the path is set but system does not accepts it. Rguidoes> > not start until I switch to its bin directory. Sys.getenv than shows > > "correct" path. > > > > See attached pictures. > > I believe the problem is the spaces that you have in your PATH. (You > have spaces after the semi-colons, before the "D:\" beginning of several> entries.) If you remove those it should work. > > Duncan Murdoch >