Re: [Rd] Stop packages and datasets to be loaded on startup.

From: Guillaume Yziquel <guillaume.yziquel_at_citycable.ch>
Date: Sun, 31 Jan 2010 18:39:52 +0100

Simon Urbanek a écrit :

>>
>> So I gather that just setting R_DEFAULT_PACKAGES to NULL should be OK. But then, what is the rather complicated stuff in the autoload() function in littler.c for?
>>
>> And concerning datasets, how do you avoid loading them?
>>

>
> Setting R_DEFAULT_PACKAGES to NULL makes sure that default packages are not loaded. Note that "datasets" are not loaded at all -- you can load the datasets package which will make them available, but they are not really "loaded". The minimal setup is simply
>
> R_DEFAULT_PACKAGES=NULL R --vanilla
>
> However, it's your responsibility to load any packages that your code needs in that case.
>
> Cheers,
> Simon

OK. Thanks. Just one more question concerning package base. It seems that setting R_DEFAULT_PACKAGES to NULL doesn't remove the base package. Is the base package removable?

> yziquel_at_seldon:~$ ocaml
> Objective Caml version 3.11.1
>
> # #use "topfind";;
> - : unit = ()
> Findlib has been successfully loaded. Additional directives:
> #require "package";; to load a package
> #list;; to list the available packages
> #camlp4o;; to load camlp4 (standard syntax)
> #camlp4r;; to load camlp4 (revised syntax)
> #predicates "p,q,...";; to set these predicates
> Topfind.reset();; to force that packages will be reloaded
> #thread;; to enable threads
>
> - : unit = ()
> # #require "R.interpreter";;
> /usr/lib/ocaml/unix.cma: loaded
> /usr/lib/ocaml/str.cma: loaded
> /usr/lib/ocaml/calendar: added to search path
> /usr/lib/ocaml/calendar/calendarLib.cma: loaded
> /usr/lib/ocaml/R: added to search path
> /usr/lib/ocaml/R/r.cma: loaded
> /usr/lib/ocaml/R/oCamlR.cmo: loaded
> # R.strings_of_t (R.eval_string "loadedNamespaces()");;
> - : string list = ["base"]
> # R.strings_of_t (R.eval_string "search()");;
> - : string list = [".GlobalEnv"; "Autoloads"; "package:base"]
> #

All the best,

-- 
      Guillaume Yziquel
http://yziquel.homelinux.org/

______________________________________________
R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Sun 31 Jan 2010 - 17:44:25 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 01 Feb 2010 - 05:20:19 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive