Art Eschenlauer
2011-Nov-08 09:49 UTC
[Rd] NAMESPACE file generation issue R 2.14.0 on Debian Squeeze
When I did install.packages("sqldf") on Windows and Mac OSX, it installed fine. However, when I did it on my Debian Squeeze box under R 2.14.0, it failed. I discovered that three of the dependent packages, chron, proto, and gsubfn, do not include a NAMESPACE file in their distribution tar.gz files. I contacted the developer, who told me that, for packages without a NAMESPACE file, R 2.14 (but not early versions of R) generates a NAMESPACE file. My workaround to get sqldf installed was to copy the generated NAMESPACE files from my Mac to my Debian squeeze box and use R CMD INSTALL to install the packages. Although I read "As from R 2.14.0 all packages will be installed with a namespace: rather than relying on this mechanism authors are strongly encouraged to add a namespace for themselves." on http://cran.r-project.org/doc/manuals/R-exts.html#Package-namespaces it nevertheless appears to me that this behavior (not generating NAMESPACE files) is peculiar to my Debian installation (since it worked on the Windows and Mac machines). Please let me know if you need more details or further research. R totally ROCKS! [[alternative HTML version deleted]]
Uwe Ligges
2011-Nov-08 15:25 UTC
[Rd] NAMESPACE file generation issue R 2.14.0 on Debian Squeeze
I think many people like to help, but we cannot: You say you are under R-2.14.0 and whn you R CMD INSTALL a package with that version of R, it does not have a NAMESPACE in the end? Then - your R installation is broken or - you are looking into a library where you have old versios of the packages or - you belive you are using R-2.14.0 but you are actually using an older version. Uwe ligges On 08.11.2011 10:49, Art Eschenlauer wrote:> When I did install.packages("sqldf") on Windows and Mac OSX, it installed > fine. > However, when I did it on my Debian Squeeze box under R 2.14.0, it failed. > I discovered that three of the dependent packages, chron, proto, and > gsubfn, do not include a NAMESPACE file in their distribution tar.gz files. > I contacted the developer, who told me that, for packages without a > NAMESPACE file, R 2.14 (but not early versions of R) generates a NAMESPACE > file. > > My workaround to get sqldf installed was to copy the generated NAMESPACE > files from my Mac to my Debian squeeze box and use R CMD INSTALL to install > the packages. > > Although I read > "As from R 2.14.0 all packages will be installed with a namespace: > rather than relying on this mechanism authors are strongly > encouraged to add a namespace for themselves." > on > http://cran.r-project.org/doc/manuals/R-exts.html#Package-namespaces > it nevertheless appears to me that this behavior (not generating NAMESPACE > files) is peculiar to my Debian installation (since it worked on the > Windows and Mac machines). > > Please let me know if you need more details or further research. > > R totally ROCKS! > > [[alternative HTML version deleted]] > > ______________________________________________ > R-devel at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel
Gabor Grothendieck
2011-Nov-08 15:31 UTC
[Rd] NAMESPACE file generation issue R 2.14.0 on Debian Squeeze
2011/11/8 Uwe Ligges <ligges at statistik.tu-dortmund.de>:> I think many people like to help, but we cannot: > > You say you are under R-2.14.0 and whn you R CMD INSTALL a package with that > version of R, it does not have a NAMESPACE in the end? > Then > > ?- your R installation is broken or > ?- you are looking into a library where you have old versios of the packages > or > ?- you belive you are using R-2.14.0 but you are actually using an older > version. >This is even reproduced on CRAN. All platforms work except one: http://cran.r-project.org/web/checks/check_results_sqldf.html -- Statistics & Software Consulting GKX Group, GKX Associates Inc. tel: 1-877-GKX-GROUP email: ggrothendieck at gmail.com
Gabor Grothendieck
2011-Nov-08 15:34 UTC
[Rd] NAMESPACE file generation issue R 2.14.0 on Debian Squeeze
On Tue, Nov 8, 2011 at 10:31 AM, Gabor Grothendieck <ggrothendieck at gmail.com> wrote:> 2011/11/8 Uwe Ligges <ligges at statistik.tu-dortmund.de>: >> I think many people like to help, but we cannot: >> >> You say you are under R-2.14.0 and whn you R CMD INSTALL a package with that >> version of R, it does not have a NAMESPACE in the end? >> Then >> >> ?- your R installation is broken or >> ?- you are looking into a library where you have old versios of the packages >> or >> ?- you belive you are using R-2.14.0 but you are actually using an older >> version. >> > > This is even reproduced on CRAN. ?All platforms work except one: > > http://cran.r-project.org/web/checks/check_results_sqldf.html >HIt send by mistake. I understand that its being fixed already on CRAN for that platform. -- Statistics & Software Consulting GKX Group, GKX Associates Inc. tel: 1-877-GKX-GROUP email: ggrothendieck at gmail.com
Uwe Ligges
2011-Nov-08 15:36 UTC
[Rd] NAMESPACE file generation issue R 2.14.0 on Debian Squeeze
On 08.11.2011 16:31, Gabor Grothendieck wrote:> 2011/11/8 Uwe Ligges<ligges at statistik.tu-dortmund.de>: >> I think many people like to help, but we cannot: >> >> You say you are under R-2.14.0 and whn you R CMD INSTALL a package with that >> version of R, it does not have a NAMESPACE in the end? >> Then >> >> - your R installation is broken or >> - you are looking into a library where you have old versios of the packages >> or >> - you belive you are using R-2.14.0 but you are actually using an older >> version. >> > > This is even reproduced on CRAN. All platforms work except one: > > http://cran.r-project.org/web/checks/check_results_sqldf.htmlNo, that one is completely unrelated (and already solved, but not yet synced to CRAN master) to the original question you have removed in your reply. The essential part of the question was: "However, when I did it on my Debian Squeeze box under R 2.14.0, it failed." and it does not fail under any R-2.14.0 if you look at the page you cited above. Best, Uwe Ligges
Gabor Grothendieck
2011-Nov-08 16:04 UTC
[Rd] NAMESPACE file generation issue R 2.14.0 on Debian Squeeze
2011/11/8 Uwe Ligges <ligges at statistik.tu-dortmund.de>:> > > On 08.11.2011 16:31, Gabor Grothendieck wrote: >> >> 2011/11/8 Uwe Ligges<ligges at statistik.tu-dortmund.de>: >>> >>> I think many people like to help, but we cannot: >>> >>> You say you are under R-2.14.0 and whn you R CMD INSTALL a package with >>> that >>> version of R, it does not have a NAMESPACE in the end? >>> Then >>> >>> ?- your R installation is broken or >>> ?- you are looking into a library where you have old versios of the >>> packages >>> or >>> ?- you belive you are using R-2.14.0 but you are actually using an older >>> version. >>> >> >> This is even reproduced on CRAN. ?All platforms work except one: >> >> http://cran.r-project.org/web/checks/check_results_sqldf.html > > No, that one is completely unrelated (and already solved, but not yet synced > to CRAN master) to the original question you have removed in your reply. >OK. One would have thought that the checks on CRAN would be consistent with the package pages which link to them. The summary table at check_results_sqldf.html does not actually give the version that is being tested so its only by clicking each of the links on the summary table that one would uncover this inconsistency. Regarding quoting, the mail server seems to reject posts from gmail for all sorts of unknown reasons and quoting large posts very well might be one of them so one has to be extremely careful. For a while (this is some time ago) I was unable to post at all but over time learned that if I was sure to bottom rather than top post and not quote too much then it would get through. -- Statistics & Software Consulting GKX Group, GKX Associates Inc. tel: 1-877-GKX-GROUP email: ggrothendieck at gmail.com