On 26 November 2011 at 18:57, Paul Menzel wrote: | Package: littler | Version: 0.1.5-1 | Severity: normal | | Dear Debian folks,
There is a single maintainer for the littler package, and his name is Dirk. | since the package rbenchmark is not packaged in Debian I installed it using `install.packages()`. Then it was installed in my home directory I believe. Your problem. Always check what .libPaths() says: edd@max:~$ r -e 'print(.libPaths())' [1] "/usr/local/lib/R/site-library" "/usr/lib/R/site-library" [3] "/usr/lib/R/library" edd@max:~$ So on my system an installation __done with littler__ goes to /usr/local/lib/R/site-library In fact littler comes with two short example scripts 'install.r' and 'update.r' I use all the time. Eg (for a not-required re-installation:) edd@max:~$ ~/bin/install.r rbenchmark trying URL 'http://cran.r-project.org/src/contrib/rbenchmark_0.3.tar.gz' Content type 'application/x-gzip' length 3504 bytes opened URL ================================================== downloaded 3504 bytes * installing *source* package ‘rbenchmark’ ... ** R ** preparing package for lazy loading ** help *** installing help indices ** building package indices ... ** testing if installed package can be loaded * DONE (rbenchmark) The downloaded packages are in ‘/tmp/downloaded_packages’ edd@max:~$ r -lrbenchmark -e 'res <- benchmark(function() {}); print(res)' test replications elapsed relative user.self sys.self user.child 1 function() { 100 0.001 1 0 0 0 sys.child 1 0 edd@max:~$ | Executing `R` and then `library(rbenchmark)` works. | | Now I wanted to try `fibonacci.r` from the examples of the Rcpp package (`r-cran-rcpp` [2]). | | $ cp /usr/lib/R/site-library/Rcpp/examples/Misc/fibonacci.r /tmp/ | $ r fibonacci.r # includes `library(rbenchmark)` | | This aborts with an error that the package `rbenchmark` cannot be found. | | $ LANG=C r fibonacci.r | Loading required package: inline | Loading required package: methods | Loading required package: compiler | Error in library(rbenchmark) : there is no package called 'rbenchmark' | Execution halted | | Is littler supposed to work in such a setup? Well, yes. I use littler for all the blog posts you refer to. Read help(Startup) and figure out your paths. Not a bug. Next time, just ask on r-sig-debian, please. Mit besten Gruessen, Dirk | Thanks, | | Paul | | | [1] http://dirk.eddelbuettel.com/blog/2011/09/08/ | [2] http://packages.debian.org/search?keywords=r-cran-rcpp | | -- System Information: | Debian Release: wheezy/sid | APT prefers unstable | APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental') | Architecture: i386 (x86_64) | | Kernel: Linux 3.1.0-1-amd64 (SMP w/2 CPU cores) | Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) | Shell: /bin/sh linked to /bin/bash | | Versions of packages littler depends on: | ii libatlas3gf-base [liblapack.so.3gf] 3.8.4-3 | ii libblas3gf [libblas.so.3gf] 1.2.20110419-2 | ii libc6 2.13-21 | ii liblapack3gf [liblapack.so.3gf] 3.3.1-1 | ii r-base-core 2.14.0-1 | | littler recommends no packages. | | Versions of packages littler suggests: | pn r-cran-getopt <none> | | -- no debconf information | xapplication/pgp-signature [Click mouse-2 to save to a file] -- "Outside of a dog, a book is a man's best friend. Inside of a dog, it is too dark to read." -- Groucho Marx -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

