An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-sig-fedora/attachments/20111107/de151e41/attachment.pl>
close but no cigar
2 messages · Mark Leeds, Gavin Simpson
On Mon, 2011-11-07 at 15:39 -0500, Mark Leeds wrote:
Hi Everyone: It turns out that there's still a small ( I hope ) problem. I'm close but that only counts in horse shoes and hand grenades.
What does this have to do with compiling R on Fedora?
You don't provide enough info to diagnose properly, but as utils is
actually part of R and not a Recommended package, R would not pass check
if the utils package were not available.
What I suspect is happening is that during loading of your package, you
are calling a function from the utils package but the utils package is
not yet available for use (its namespace has not yet been "loaded"), so
as far as R is concerned at this point in time a function defined in the
utils namespace may as well not exist.
Have you got some code that is run during package loading/attaching? If
so, find it and add utils::: to the front of packageDescription( ).
For example, I have the file zzz.R in one of my packages that contains:
.onAttach <- function(lib, pkg) {
library.dynam("analogue", pkg, lib)
packageStartupMessage("This is analogue ",
utils::packageDescription("analogue",
field="Version"),
appendLF = TRUE)
}
HTH
G
Here's my problem: When trying to load a package that I am writing, the load is looking for the packageDescription function in the utils package but not finding the utils package. I looked on cran and utils is not there which makes me think that it should have been part of the build. But then I went to my recommended packages directory and it's not there ? (See below ). Is that an error by me that it's not there ? I definitely don't know how to tell R that it needs to load the utils package since I don't seem to have access to the package myself. Thanks for any enlightenment and my apologies for the false SUCCESS earlier. Mark :~/R/2.14/src/library/Recommended> dir total 6748 -rw-rw-r--. 1 markleeds markleeds 3574 Nov 7 10:11 Makefile.in -rw-rw-r--. 1 markleeds markleeds 1661 Nov 7 10:11 Makefile.win -rw-rw-r--. 1 markleeds markleeds 30402 Nov 7 10:20 KernSmooth_2.23-6.tar.gz -rw-rw-r--. 1 markleeds markleeds 466772 Nov 7 10:20 MASS_7.3-16.tar.gz -rw-rw-r--. 1 markleeds markleeds 2513797 Nov 7 10:20 Matrix_1.0-1.tar.gz -rw-rw-r--. 1 markleeds markleeds 225195 Nov 7 10:20 boot_1.3-3.tar.gz -rw-rw-r--. 1 markleeds markleeds 20128 Nov 7 10:20 class_7.3-3.tar.gz -rw-rw-r--. 1 markleeds markleeds 246438 Nov 7 10:20 cluster_1.14.1.tar.gz -rw-rw-r--. 1 markleeds markleeds 12392 Nov 7 10:20 codetools_0.2-8.tar.gz -rw-rw-r--. 1 markleeds markleeds 339028 Nov 7 10:20 foreign_0.8-46.tar.gz -rw-rw-r--. 1 markleeds markleeds 358849 Nov 7 10:20 lattice_0.20-0.tar.gz -rw-rw-r--. 1 markleeds markleeds 510979 Nov 7 10:20 mgcv_1.7-10.tar.gz -rw-rw-r--. 1 markleeds markleeds 705660 Nov 7 10:20 nlme_3.1-102.tar.gz -rw-rw-r--. 1 markleeds markleeds 23418 Nov 7 10:20 nnet_7.3-1.tar.gz -rw-rw-r--. 1 markleeds markleeds 135545 Nov 7 10:20 rpart_3.1-50.tar.gz -rw-rw-r--. 1 markleeds markleeds 40627 Nov 7 10:20 spatial_7.3-3.tar.gz -rw-rw-r--. 1 markleeds markleeds 1248288 Nov 7 10:20 survival_2.36-10.tar.gz lrwxrwxrwx. 1 markleeds markleeds 18 Nov 7 10:20 MASS.tgz -> MASS_7.3-16.tar.gz lrwxrwxrwx. 1 markleeds markleeds 21 Nov 7 10:20 lattice.tgz -> lattice_0.20-0.tar.gz lrwxrwxrwx. 1 markleeds markleeds 19 Nov 7 10:20 Matrix.tgz -> Matrix_1.0-1.tar.gz lrwxrwxrwx. 1 markleeds markleeds 19 Nov 7 10:20 nlme.tgz -> nlme_3.1-102.tar.gz lrwxrwxrwx. 1 markleeds markleeds 23 Nov 7 10:20 survival.tgz -> survival_2.36-10.tar.gz lrwxrwxrwx. 1 markleeds markleeds 17 Nov 7 10:20 boot.tgz -> boot_1.3-3.tar.gz lrwxrwxrwx. 1 markleeds markleeds 21 Nov 7 10:20 cluster.tgz -> cluster_1.14.1.tar.gz lrwxrwxrwx. 1 markleeds markleeds 22 Nov 7 10:20 codetools.tgz -> codetools_0.2-8.tar.gz lrwxrwxrwx. 1 markleeds markleeds 21 Nov 7 10:20 foreign.tgz -> foreign_0.8-46.tar.gz lrwxrwxrwx. 1 markleeds markleeds 24 Nov 7 10:20 KernSmooth.tgz -> KernSmooth_2.23-6.tar.gz lrwxrwxrwx. 1 markleeds markleeds 19 Nov 7 10:20 rpart.tgz -> rpart_3.1-50.tar.gz lrwxrwxrwx. 1 markleeds markleeds 18 Nov 7 10:20 class.tgz -> class_7.3-3.tar.gz lrwxrwxrwx. 1 markleeds markleeds 17 Nov 7 10:20 nnet.tgz -> nnet_7.3-1.tar.gz lrwxrwxrwx. 1 markleeds markleeds 20 Nov 7 10:20 spatial.tgz -> spatial_7.3-3.tar.gz lrwxrwxrwx. 1 markleeds markleeds 18 Nov 7 10:20 mgcv.tgz -> mgcv_1.7-10.tar.gz :~/R/2.14/src/library/Recommended> [[alternative HTML version deleted]]
_______________________________________________ R-SIG-Fedora mailing list R-SIG-Fedora at r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-fedora
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~% Dr. Gavin Simpson [t] +44 (0)20 7679 0522 ECRC, UCL Geography, [f] +44 (0)20 7679 0565 Pearson Building, [e] gavin.simpsonATNOSPAMucl.ac.uk Gower Street, London [w] http://www.ucl.ac.uk/~ucfagls/ UK. WC1E 6BT. [w] http://www.freshwaters.org.uk %~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%