Re: [R-pkg-devel] no visible global function definition

2015-06-29 Thread Uwe Ligges
On 29.06.2015 19:19, Zhian Kamvar wrote: Does this also mean that we now need to include these packages (stats, graphics, etc) in the Imports field of the DESCRIPTION? Yes. And by proper import directives in the NAMESPACE file, ideally you should be selectively importing via importFrom() di

Re: [R-pkg-devel] no visible global function definition

2015-06-29 Thread Uwe Ligges
Most of this has been answered by others already. Note that package base itself is always imported into the Namespace but names from the other packages are not and really need to be if actually used. Best, Uwe Ligges On 29.06.2015 19:09, Kevin Ushey wrote: Hi Uwe, It seems like this is quite

Re: [R-pkg-devel] no visible global function definition

2015-06-29 Thread Dirk Eddelbuettel
On 29 June 2015 at 10:23, Neal Fultz wrote: | There's https://twitter.com/cranpolicywatch | | I wouldn't mind if that got forwarded to r-package-devel, as I'm not on | twitter myself. CRAN Policy Watch is a simple-ish cronjob and you can also 'watch' (or subscribe to) the underlying GitHub repo

Re: [R-pkg-devel] appropriate directory for data downloads in examples, demos and vignettes

2015-06-29 Thread Jonathan Callahan
Henrik, Thanks for the detailed response! I'll have to look at the R.cache package and try out your suggestions. Jon On Mon, Jun 29, 2015 at 12:48 PM, Henrik Bengtsson < henrik.bengts...@ucsf.edu> wrote: > FYI, > > my R.cache package keeps cache files under a specific cache directory. > To meet

Re: [R-pkg-devel] no visible global function definition

2015-06-29 Thread Hadley Wickham
> and available as an RSS feed. (If you prefer Twitter, feel free to > mirror the RSS feed there, if that's possible. I don't use Twitter, so > I won't do it.) It seems to have become known here essentially > immediately, so I'm not sure how an announcement would help. > > For the reasoning: th

Re: [R-pkg-devel] no visible global function definition

2015-06-29 Thread Jonathan Callahan
Dan, I find it useful to reference external functions as package::function() throughout all of our R code. This eliminates the need to import namespaces although you still need to to specify the package in the DESCRIPTION file "Imports:" section. Best, Jon On Mon, Jun 29, 2015 at 8:46 AM, Uwe L

Re: [R-pkg-devel] no visible global function definition

2015-06-29 Thread Duncan Murdoch
On 29/06/2015 7:09 PM, Kevin Ushey wrote: > Hi Uwe, > > It seems like this is quite a major change; I imagine it will affect many > packages (since lots of packages implicitly assume other 'base' packages, > like 'utils', will always be available in an R session). IIUC, in the > latest versions of

Re: [R-pkg-devel] no visible global function definition

2015-06-29 Thread Zhian Kamvar
Does this also mean that we now need to include these packages (stats, graphics, etc) in the Imports field of the DESCRIPTION? Thanks, Zhian > On Jun 29, 2015, at 10:09 , Kevin Ushey wrote: > > Hi Uwe, > > It seems like this is quite a major change; I imagine it will affect many > packages (si

Re: [R-pkg-devel] no visible global function definition

2015-06-29 Thread Neal Fultz
There's https://twitter.com/cranpolicywatch I wouldn't mind if that got forwarded to r-package-devel, as I'm not on twitter myself. On Mon, Jun 29, 2015 at 10:09 AM, Kevin Ushey wrote: > Hi Uwe, > > It seems like this is quite a major change; I imagine it will affect many > packages (since lo

Re: [R-pkg-devel] no visible global function definition

2015-06-29 Thread Kevin Ushey
Hi Uwe, It seems like this is quite a major change; I imagine it will affect many packages (since lots of packages implicitly assume other 'base' packages, like 'utils', will always be available in an R session). IIUC, in the latest versions of R-devel, only the 'base' package can be assumed avail

Re: [R-pkg-devel] appropriate directory for data downloads in examples, demos and vignettes

2015-06-29 Thread Paul Gilbert
Regarding alternative places for scripts, you can add a directory (eg inst/testLocalScripts) and then with a recently added R CMD feature you can do R CMD check --test-dir=inst/testLocalScripts your-package.tar.gz This will not (automatically) be checked on CRAN. Beware that you also need to

Re: [R-pkg-devel] appropriate directory for data downloads in examples, demos and vignettes

2015-06-29 Thread Stachelek, Joseph
Following the answer posted by 'James' at: http://stackoverflow.com/questions/12598242/global-variables-in-packages-in-r I have the user set the data directory by editing a file (yourdatadirpath) which is then read into options() on package load. .onLoad<-function(libname=find.package("datapkg"

Re: [R-pkg-devel] appropriate directory for data downloads in examples, demos and vignettes

2015-06-29 Thread Neal Fultz
I would use tempfile() instead of /tmp/. That should create a file/directory that will get cleaned up when the R session ends, instead of when the machine reboots. AFAIK it also works on windows. On Mon, Jun 29, 2015 at 8:25 AM, Jonathan Callahan < jonat...@mazamascience.com> wrote: > Hi, > > The

Re: [R-pkg-devel] no visible global function definition

2015-06-29 Thread Uwe Ligges
On 29.06.2015 11:10, Daniel Lüdecke wrote: Hello, I'm doing my package check for CRAN, in order to see whether submitting the package-update passes all checks. I'm doing the tests under Windows 7, using R-Version "R Under development (unstable) (2015-06-28 r68602)". Now I got a quite long lis

[R-pkg-devel] appropriate directory for data downloads in examples, demos and vignettes

2015-06-29 Thread Jonathan Callahan
Hi, The MazamaSpatialUtils package has a required "package state" variable which users set to specify where they want to store large amounts of GIS data that is being downloaded and converted by the package. The implementation of this follows

[R-pkg-devel] no visible global function definition

2015-06-29 Thread Daniel Lüdecke
Hello, I'm doing my package check for CRAN, in order to see whether submitting the package-update passes all checks. I'm doing the tests under Windows 7, using R-Version "R Under development (unstable) (2015-06-28 r68602)". Now I got a quite long list of NOTEs, which are probably no problem, howe