[Rd] Depends/Imports/Suggest/Enhence

2012-11-06 Thread Christophe Genolini
Hi the list In the DESCRIPTION file of my package foo0, I have: Depends: foo1 Imports: foo2 Suggest: foo3 Enhence: foo4 If I understand correctly, to install foo0 on my computer, I need to already have foo1, foo2, foo3. foo4 is not necessary. I my R sesssion, when I will write: library(foo0),

Re: [Rd] Depends/Imports/Suggest/Enhence

2012-11-06 Thread Simon Urbanek
On Nov 6, 2012, at 11:19 AM, Christophe Genolini wrote: > Hi the list > > In the DESCRIPTION file of my package foo0, I have: > > Depends: foo1 > Imports: foo2 > Suggest: foo3 > Enhence: foo4 > (it is really "Suggests" and "Enhances" - the above are typos I presume and thus won't be recogniz

Re: [Rd] Depends/Imports/Suggest/Enhence

2012-11-06 Thread Christophe Genolini
Thanks a lot for your answer. (it is really "Suggests" and "Enhances" - the above are typos I presume and thus won't be recognized) Yes, it was typo. Sorry No, you only need foo1 and foo2. The other two are optional. I get: * checking package dependencies ... ERROR Package suggested but no

Re: [Rd] Depends/Imports/Suggest/Enhence

2012-11-06 Thread Marc Schwartz
On Nov 6, 2012, at 10:36 AM, Simon Urbanek wrote: > > On Nov 6, 2012, at 11:19 AM, Christophe Genolini wrote: > >> Hi the list >> >> In the DESCRIPTION file of my package foo0, I have: >> >> Depends: foo1 >> Imports: foo2 >> Suggest: foo3 >> Enhence: foo4 >> > > (it is really "Suggests" an

Re: [Rd] Depends/Imports/Suggest/Enhence

2012-11-06 Thread Marc Schwartz
On Nov 6, 2012, at 11:00 AM, Marc Schwartz wrote: > > On Nov 6, 2012, at 10:36 AM, Simon Urbanek > wrote: > >> >> On Nov 6, 2012, at 11:19 AM, Christophe Genolini wrote: >> >>> Hi the list >>> >>> In the DESCRIPTION file of my package foo0, I have: >>> >>> Depends: foo1 >>> Imports: foo2

Re: [Rd] Depends/Imports/Suggest/Enhence

2012-11-06 Thread Marc Schwartz
On Nov 6, 2012, at 10:55 AM, Christophe Genolini wrote: > Thanks a lot for your answer. > >> (it is really "Suggests" and "Enhances" - the above are typos I presume and >> thus won't be recognized) > Yes, it was typo. Sorry >> No, you only need foo1 and foo2. The other two are optional. > I ge

Re: [Rd] Depends/Imports/Suggest/Enhence

2012-11-06 Thread Uwe Ligges
On 06.11.2012 17:55, Christophe Genolini wrote: Thanks a lot for your answer. (it is really "Suggests" and "Enhances" - the above are typos I presume and thus won't be recognized) Yes, it was typo. Sorry No, you only need foo1 and foo2. The other two are optional. I get: * checking pack

[Rd] LazyData: no / yes

2012-11-06 Thread Christophe Genolini
Hi the list I have package foo0 with a big dataset 'myData'. In DESCRIPTION, if I use 'LazyData: no', then I get: - when I open a R session : memory used=20 908 - when I attach 'library(foo0)' : memory used=24364 - then I load the set 'data(myData)' : memory used=39 668 If I use LazyData: ye

Re: [Rd] Depends/Imports/Suggest/Enhence

2012-11-06 Thread Allen S. Rout
On 11/06/2012 11:36 AM, Simon Urbanek wrote: > > On Nov 6, 2012, at 11:19 AM, Christophe Genolini wrote: > >> Hi the list >> >> In the DESCRIPTION file of my package foo0, I have: >> >> Depends: foo1 >> Imports: foo2 >> Suggest: foo3 >> Enhence: foo4 > > No, you only need foo1 and foo2. The oth

Re: [Rd] Depends/Imports/Suggest/Enhence

2012-11-06 Thread Allen S. Rout
On 11/06/2012 12:49 PM, Uwe Ligges wrote: > >> >> >> - 'Depends:foo1' if there is a function in foo1 that my package use often > > No, better make use of Namespace imports all the time and only use > "Depends" if you really need the other package to be installed. This is > rarely needed. >

Re: [Rd] LazyData: no / yes

2012-11-06 Thread Simon Urbanek
On Nov 6, 2012, at 1:03 PM, Christophe Genolini wrote: > Hi the list > > I have package foo0 with a big dataset 'myData'. > In DESCRIPTION, if I use 'LazyData: no', then I get: > > - when I open a R session : memory used=20 908 > - when I attach 'library(foo0)' : memory used=24364 > - then I lo

Re: [Rd] Depends/Imports/Suggest/Enhence

2012-11-06 Thread Davor Cubranic
On 2012-11-06, at 9:49 AM, Uwe Ligges wrote: > On 06.11.2012 17:55, Christophe Genolini wrote: >> >>> "Imports" means that symbols are imported form the namespace, so they >>> are mandatory for the package to operate. "Suggests" means that >>> symbols from the package are not required, but they a

Re: [Rd] unedited copy/paste from install.packages man page to update.packages man page

2012-11-06 Thread Hervé Pagès
Hi, Looks like this was addressed in revision 61083, thanks! Note that the example provided for update.packages is still the same i.e. it shows how to use install.packages instead of update.packages. Cheers, H. On 11/01/2012 05:13 PM, Hervé Pagès wrote: Hi, Found in the man page for update.pa

Re: [Rd] Depends/Imports/Suggest/Enhence

2012-11-06 Thread Simon Urbanek
On Nov 6, 2012, at 2:44 PM, Davor Cubranic wrote: > On 2012-11-06, at 9:49 AM, Uwe Ligges wrote: > >> On 06.11.2012 17:55, Christophe Genolini wrote: >>> "Imports" means that symbols are imported form the namespace, so they are mandatory for the package to operate. "Suggests" means th

[Rd] mysterious description of download.packages

2012-11-06 Thread Hervé Pagès
Hi, \description paragraph in man page for download.packages doesn't seem to have anything to do with download.packages: These functions can be used to automatically compare the version numbers of installed packages with the newest available version on the repositories and update outdated

Re: [Rd] Depends/Imports/Suggest/Enhence

2012-11-06 Thread Uwe Ligges
On 06.11.2012 21:17, Simon Urbanek wrote: On Nov 6, 2012, at 2:44 PM, Davor Cubranic wrote: On 2012-11-06, at 9:49 AM, Uwe Ligges wrote: On 06.11.2012 17:55, Christophe Genolini wrote: "Imports" means that symbols are imported form the namespace, so they are mandatory for the package to

[Rd] \value section for write_PACKAGES not updated

2012-11-06 Thread Hervé Pagès
Hi, Found in \value section of man page for tools::write_PACKAGES: Invisibly returns the number of packages described in the resulting \file{PACKAGES} and \file{PACKAGES.gz} files. If \code{0}, no packages were found and no files were written. Those days (don't know when this has changed

Re: [Rd] Depends/Imports/Suggest/Enhence

2012-11-06 Thread Simon Urbanek
On Nov 6, 2012, at 3:43 PM, Uwe Ligges wrote: > > > On 06.11.2012 21:17, Simon Urbanek wrote: >> >> On Nov 6, 2012, at 2:44 PM, Davor Cubranic wrote: >> >>> On 2012-11-06, at 9:49 AM, Uwe Ligges wrote: >>> On 06.11.2012 17:55, Christophe Genolini wrote: > >> "Imports" means tha

Re: [Rd] LazyData: no / yes

2012-11-06 Thread Christophe Genolini
I get it from windows tack manager (under Window 7). I guess it is in K something. My point was not about "how big is my dataset" (anyway, it is a fake dataset, so it can be as big as I want) but more about "where on hell are lost the 52 760 - 39 668 K ?" :-) Christophe On Nov 6, 2012, at 1

Re: [Rd] LazyData: no / yes

2012-11-06 Thread Simon Urbanek
On Nov 6, 2012, at 5:13 PM, Christophe Genolini wrote: > I get it from windows tack manager (under Window 7). I guess it is in K > something. > My point was not about "how big is my dataset" (anyway, it is a fake dataset, > so it can be as big as I want) but more about "where on hell are lost t

Re: [Rd] LazyData: no / yes

2012-11-06 Thread Christophe Genolini
My real point was to explore the LazyData mechanism. So I try with LazyData: no and with LazyData: yes to see the difference, to see if I understand correctly the "WRE". The difference of the memory allocation pointed by the task manager alarm me, but you are right (I read the FAQ 7.42): my ques

[Rd] Strange behaviour in as.Date

2012-11-06 Thread Simon Knapp
I have been having trouble passing a default argument to base::as.Date.character and think it is due to some funkiness in the function definition. base::as.Date.character is defined as function (x, format = "", ...) { # stuff deleted res <- if (missing(format)) charToDate(x)