Re: [R] Dep setting for install of packages... EOT (I think) and my thanks

2008-10-20 Thread Brian Lunergan

Gabor Grothendieck wrote:

leaps is not in Depends or Imports for car.  It is in Suggests
and those don't get automatically pulled in when dependencies = NA.

What you could do is to replace the builtin menuInstallPkgs with
your own by running this:

assignInNamespace("menuInstallPkgs", function (type = getOption("pkgType")) {
install.packages(NULL, .libPaths()[1], dependencies = TRUE, type = type)
}, ns = "utils")

You will need to do that in every session that you want to use the install
menu or you could just add it to your Rprofile.site file which you
can find by running this:

file.path(R.home(), "etc", "Rprofile.site")


So, if I'm understanding this correctly, for a simple, one libpath() 
situation like mine dep = NA will catch depends and imports, while dep = 
TRUE will catch those two plus anything under suggests. From prior 
discussion and suggested reading I take it I would use dep = FALSE to catch 
the first two if I had multiple locations in libpath() while dep = TRUE 
behaviour would stay the same.


In putting the above code snippet into the Rprofile file, does it need to 
be all on one line or can it spread over multiple lines as it appears above?


My thanks for your time and patient assistance in finding the answers. It 
is very much appreciated and useful.


Regards...
--

Brian Lunergan
Nepean, Ontario
Canada


---

__
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.


Re: [R] Dep setting for install of packages... EOT (I think) and my thanks

2008-10-20 Thread Gabor Grothendieck
You can put the code on several lines as shown or on one line.  Does
not matter.

Read the info on the dependencies= arg in ?install.packages
for the definitive explanation of how dependencies= works.

On Mon, Oct 20, 2008 at 9:32 AM, Brian Lunergan <[EMAIL PROTECTED]> wrote:
> Gabor Grothendieck wrote:
>>
>> leaps is not in Depends or Imports for car.  It is in Suggests
>> and those don't get automatically pulled in when dependencies = NA.
>>
>> What you could do is to replace the builtin menuInstallPkgs with
>> your own by running this:
>>
>> assignInNamespace("menuInstallPkgs", function (type =
>> getOption("pkgType")) {
>>install.packages(NULL, .libPaths()[1], dependencies = TRUE, type =
>> type)
>> }, ns = "utils")
>>
>> You will need to do that in every session that you want to use the install
>> menu or you could just add it to your Rprofile.site file which you
>> can find by running this:
>>
>> file.path(R.home(), "etc", "Rprofile.site")
>
> So, if I'm understanding this correctly, for a simple, one libpath()
> situation like mine dep = NA will catch depends and imports, while dep =
> TRUE will catch those two plus anything under suggests. From prior
> discussion and suggested reading I take it I would use dep = FALSE to catch
> the first two if I had multiple locations in libpath() while dep = TRUE
> behaviour would stay the same.
>
> In putting the above code snippet into the Rprofile file, does it need to be
> all on one line or can it spread over multiple lines as it appears above?
>
> My thanks for your time and patient assistance in finding the answers. It is
> very much appreciated and useful.
>
> Regards...
> --
>
> Brian Lunergan
> Nepean, Ontario
> Canada
>
>
> ---
> avast! Antivirus: Outbound message clean.
> Virus Database (VPS): 081018-0, 2008-10-18
> Tested on: 2008-10-20 09:32:23
> avast! - copyright (c) 1988-2008 ALWIL Software.
> http://www.avast.com
>
>
>
>

__
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.