Re: [Rd] importing namespaces from base packages

2018-03-13 Thread Jari Oksanen
It seems that they are defined in tools/R/check.R. For instance, line 363-364 says: ## The default set of packages here are as they are because ## .get_S3_generics_as_seen_from_package needs utils,graphics,stats and then on lines 368 (Windows) and 377 (other OS) it has: "R_DEFAULT_P

Re: [Rd] importing namespaces from base packages

2018-03-13 Thread Martin Maechler
> Adrian Dușa > on Tue, 13 Mar 2018 09:17:08 +0200 writes: > On Mon, Mar 12, 2018 at 2:18 PM, Martin Maechler > wrote: >> [...] >> Is that so? Not according to my reading of the 'Writing R >> Extensions' manual, nor according to what I have been doing in >>

Re: [Rd] importing namespaces from base packages

2018-03-13 Thread Adrian Dușa
On Mon, Mar 12, 2018 at 2:18 PM, Martin Maechler wrote: > [...] > Is that so? Not according to my reading of the 'Writing R > Extensions' manual, nor according to what I have been doing in > all of my packages for ca. 2 years: > > The rule I have in my mind is > > 1) NAMESPACE Import(s|From) \

Re: [Rd] importing namespaces from base packages

2018-03-12 Thread Martin Maechler
> Adrian Dușa > on Fri, 9 Mar 2018 10:34:30 +0200 writes: > Dear All, > I understand the R CMD checks with only the base package attached, > everything else (including the other packages bundled with the base R) > should be imported and most importantly declared in the

[Rd] importing namespaces from base packages

2018-03-09 Thread Adrian Dușa
Dear All, I understand the R CMD checks with only the base package attached, everything else (including the other packages bundled with the base R) should be imported and most importantly declared in the Imports field from the DESCRIPTION file. However, I do use functions from other packages than