Thank you Richard and Jeff, There is a difference in the reporting of extra packages in 32bit 64bit, see following: 32bit although it does not report the extra package when I call it with Rgui it has the rgenoud. Instead 64bit Rgui it reports that extra package of rgenoud.
More info follows: (in cygwin) > sessionInfo() R version 2.15.1 (2012-06-22) Platform: i386-pc-mingw32/i386 (32-bit) locale: [1] LC_COLLATE=English_United States.1252 [2] LC_CTYPE=English_United States.1252 [3] LC_MONETARY=English_United States.1252 [4] LC_NUMERIC=C [5] LC_TIME=English_United States.1252 attached base packages: [1] stats graphics grDevices utils datasets methods base > library(rgenoud) Error in library(rgenoud) : there is no package called 'rgenoud' Execution halted *More info in windows:**(64 bit)* > sessionInfo() R version 2.15.1 (2012-06-22) Platform: x86_64-pc-mingw32/x64 (64-bit) locale: [1] LC_COLLATE=English_United States.1252 [2] LC_CTYPE=English_United States.1252 [3] LC_MONETARY=English_United States.1252 [4] LC_NUMERIC=C [5] LC_TIME=English_United States.1252 attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] rgenoud_5.7-8 *More info in windows (32 bit):* > sessionInfo() R version 2.15.1 (2012-06-22) Platform: i386-pc-mingw32/i386 (32-bit) locale: [1] LC_COLLATE=English_United States.1252 [2] LC_CTYPE=English_United States.1252 [3] LC_MONETARY=English_United States.1252 [4] LC_NUMERIC=C [5] LC_TIME=English_United States.1252 attached base packages: [1] stats graphics grDevices utils datasets methods base > library(rgenoud) ## rgenoud (Version 5.7-8, Build Date: 2012-06-03) ## See http://sekhon.berkeley.edu/rgenoud for additional documentation. ## Please cite software as: ## Walter Mebane, Jr. and Jasjeet S. Sekhon. 2011. ## ``Genetic Optimization Using Derivatives: The rgenoud package for R.'' ## Journal of Statistical Software, 42(11): 1-26. ## > On 10/16/2012 12:23 PM, Richard M. Heiberger wrote: > I would guess that you installed rgenoud as user, not as > administrator. That would put the > file inside > c:/Users/YourName/AppData/Local/VirtualStore/Program Files/R > instead of where you think it is. I can imagine that could easily > cause confusion. > > Rich > > On Tue, Oct 16, 2012 at 1:14 PM, Aldi Kraja <a...@wustl.edu > <mailto:a...@wustl.edu>> wrote: > > Thank you Duncan, > > No I did not install R from cygwin. R is installed with windows 7. > I am calling R with a symbolic link from /usr/bin part of cygwin > paths, but my symbolic link is pointing to /usr/bin/R -> > /cygdrive/d/RHome/bin/R.exe > > Is it possible R is lost in forward paths recognized by cygwin? > > You are right I need to test further. Thought someone would have > had this experience and a solution from previous work. > > Aldi > > On 10/16/2012 11:51 AM, Duncan Murdoch wrote: > > On 16/10/2012 12:41 PM, Aldi Kraja wrote: > > Hi, > Using R 2.15.1 on Windows 7. Have installed both versions > 32 and 64bit. > In both of them among others I have installed a package > rgenoud > When I open R gui of 32bit and write library(rgenoud) it > responds by > showing a functional rgenoud version 5.7-8. The same it > does on Rgui > 64bit. > > Now I am working in cygwin (v. 1.12.4.0) with xwin. > Normally before when > I had installed a package, I only had to call the library > with the name > of the package and R will find the right one to load. > > Now when I apply R CMD BATCH script1.R out1.txt, under > cygwin the first > thing it reports: > > R version 2.15.1 (2012-06-22) -- "Roasted Marshmallows" > After some generalities it reports > >library(rgenoud) > Error in library(rgenoud) : there is no package called > 'rgenoud' > Execution halted > > So my question is why under cygwin in a batch mode, it > does not find the > installed package, which is already installed in my > laptop's R? > > > I think you'll need to debug this yourself, since you haven't > given us much to work with. My guess would be that you have a > different path so you're finding a different R, but it could > be something else. (You aren't using the R distributed by > Cygwin, are you? That one doesn't work. I don't know who put > it into the Cygwin distribution, but they obviously didn't > test it.) > > Duncan Murdoch > > > ______________________________________________ > R-help@r-project.org <mailto:R-help@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. > > [[alternative HTML version deleted]] ______________________________________________ R-help@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.