[R-pkg-devel] Managing RNG in C code

2015-06-04 Thread Guillaume Chapron
Hello, I am working on a package where I am passing some computations from R to C and back. The C code runs many stochastic trajectories of a population model (with the RNG from R through multiple calls to GetRNGstate and PutRNGstate). I would like that each trajectory has its own seed. My

[R-pkg-devel] Creating a Makevars that includes objects from another compiler

2015-06-05 Thread Charles Determan
Greetings, Quick context, I have been working on developing a set of packages to make GPU computing as simple as possible with R. I have a functional package that works very nicely with OpenCL based code (gpuR - https://github.com/cdeterman/gpuR) but I also am building a companion CUDA backend

Re: [R-pkg-devel] Creating a Makevars that includes objects from another compiler

2015-06-05 Thread Charles Determan
A quick followup, even when I try and use the g++ I cannot seem to pass the objects (it keeps omitting the .o file generated from nvcc). How can I have my Makevars file pass a defined list of object files to the final shared library call? Alternate gpuRcuda.so block where the build output still

Re: [R-pkg-devel] Keeping secrets in R packages

2015-06-05 Thread Imanuel Costigan
Have you checked out Hadley's secret package? https://github.com/hadley/secure/blob/master/README.md Sent from my iPhone On 6 Jun 2015, at 8:19 am, Neal Fultz nfu...@gmail.com wrote: I am working on updating the RGoogleDocs package to use OAuth2, since the old api was recently turned off (at

Re: [R-pkg-devel] FW: CRAN submission berryFunctions 1.8.0

2015-06-03 Thread Berry Boessenkool
I found the actual reason: I was really stupid. At the time of testing, I had killed the internet acces. Sorry for bothering you all ... Berry PS: If you want to know why on earth I did that: Yesterday, I got the error: unable to connect to CRAN.R-project.org on port 80. I couldn't find an

Re: [R-pkg-devel] FW: CRAN submission berryFunctions 1.8.0

2015-06-03 Thread Uwe Ligges
On 03.06.2015 09:48, Berry Boessenkool wrote: Hi, after submitting my package update, CRAN (Brian Ripley) found a couple of warnings / messages. URLs that are not longer existent, a non-ASCII character from copypasting, incorrect title case. Stuff that I should and could definitely solve

Re: [R-pkg-devel] FW: CRAN submission berryFunctions 1.8.0

2015-06-03 Thread Martyn Plummer
On Wed, 2015-06-03 at 09:51 +0200, Uwe Ligges wrote: On 03.06.2015 09:48, Berry Boessenkool wrote: Hi, after submitting my package update, CRAN (Brian Ripley) found a couple of warnings / messages. URLs that are not longer existent, a non-ASCII character from copypasting,

[R-pkg-devel] Running a script after a package has been installed.

2015-06-03 Thread Luca Cerone
Dear all, I am writing a package that contains some binaries that should be linked in /usr/bin after the package has been installed (I placed them in Rpackage/inst/bin) I know I can use a script configure or configure.win to be run before the package has been installed, is there a way I can write

[R-pkg-devel] Vignette does not show up after loading package

2015-06-03 Thread Rik Verdonck
Hi all, I am developing a package for the interpretation of mass spectrometry data, which can be found here: https://github.com/goat-anti-rabbit/labelpepmatch.R I wrote a vignette that compiles fine into a .html using knitr in Rstudio. The output line in the vignette.rmd file looks like :

Re: [R-pkg-devel] CRAN incoming feasibility Error

2015-06-09 Thread Dirk Eddelbuettel
On 9 June 2015 at 10:24, Seth Wenchel wrote: | Hi All, | | I'm running into an error with R CMD check --as-cran on R 3.2.0 for | windows. Obviously i've tried googling but i haven't found this specific | issue. I was wondering if it is because of my company's network settings. | FWIW, it makes

Re: [R-pkg-devel] CRAN incoming feasibility Error

2015-06-09 Thread Dirk Eddelbuettel
On 9 June 2015 at 11:47, Seth Wenchel wrote: | Actually, all of those switches came in as i was trying to resolve this issue.I | started with just R CMD check --as-cran.  In fact, my Rprofile.site does have a | similar statement and sets a proxy but it doesn't seem good enough for the CRAN |

[R-pkg-devel] CRAN and CMake

2015-06-09 Thread Tim Keitt
I am thinking of writing an R wrapper for some code that uses cmake. If I include that code under the src directory (ie in src/the_other_project/), am I likely to run into problems with CRAN? Never been down that road and would like to know if this is feasible. I guess I would have to call cmake

[R-pkg-devel] Package review

2015-06-10 Thread Xiaowei Zhan
Hello all, I have submitted a package (seqminer) for bug-fix to CRAN on June 7. So far I have not heard back from CRAN team about its status (acceptance/rejection). Should I re-submit the package or keep waiting? Are there any suggestions? Thanks, Xiaowei [[alternative HTML version

Re: [R-pkg-devel] CRAN and CMake

2015-06-09 Thread Gregory Jefferis
On 9 Jun 2015, at 22:08, Gábor Csárdi csardi.ga...@gmail.com wrote: Thanks! I just looked at it, but it seems that it actually requires an external system cmake. I am trying to put cmake itself into a package. This one: https://github.com/stnava/cmaker I remember now there is another

Re: [R-pkg-devel] R CMD check package subdirectory warning on filenames

2015-06-18 Thread Brian G. Peterson
On Thu, 2015-06-18 at 09:14 -0400, Ben Bolker wrote: (I didn't know that browsers had trouble accessing file names that started with a digit?) They don't. the relevant rfc, I think, is this one: https://www.ietf.org/rfc/rfc3986.txt the 'unreserved' (allowed) characters are unreserved =

Re: [R-pkg-devel] R CMD check package subdirectory warning on filenames

2015-06-18 Thread Ben Bolker
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 It's specific to doc files. In the current version, section 1.4 says: Documents in inst/doc can be in arbitrary format, however we strongly recommend providing them in PDF format, so users on almost all platforms can easily read them. To ensure

Re: [R-pkg-devel] how to skip tests on CRAN but NOT on travis-ci?

2015-06-21 Thread Dirk Eddelbuettel
Hi Jenny, And a warm welcome here. I hope you enjoy this place and its ability to form questions (and answers) beyond the 140 char limit posed elsewhere. :-) On 21 June 2015 at 07:46, Jennifer Bryan wrote: | I hope this is an appropriate to place to ask this. My question involves add-on tools

Re: [R-pkg-devel] R CMD check no-nanny option?

2015-06-11 Thread Duncan Murdoch
On 11/06/2015 9:15 AM, Kevin Coombes wrote: Hi, When I run R CMD check --as-cran on my packages in R 3.2.0, I now get a new series of NOTE's telling me that (1) the Description field in the DESCRIPTION should file should not start with This package or with the package name, and (2) the Title

Re: [R-pkg-devel] apparent S3 methods note in R CMD check

2015-06-12 Thread Thomas Petzoldt
Dear Martin, dear package developers, I had a very similar case three days ago in one of our packages. Our aim was to provide an S3 method matplot.deSolve and an alternative and more specific non-S3 function matplot.1D because the .1D follows the naming scheme of other related functions. The

[R-pkg-devel] use of `dev.new` across platforms in RStudio

2015-06-12 Thread Alex Chubaty
Dear list members, Use of platform-specific code to open new plot devices (e.g., `quartz`, `x11`) is discouraged in favour of using `dev.new`; however, this does not work in RStudio. A purported solution introduced in R 3.1.1 was to call `dev.new(noRStudioGD = TRUE)`, which works on Windows, but

Re: [R-pkg-devel] apparent S3 methods note in R CMD check

2015-06-13 Thread Martin Maechler
Uwe Ligges lig...@statistik.tu-dortmund.de on Fri, 12 Jun 2015 22:58:17 +0200 writes: On 12.06.2015 18:22, Roebuck,Paul L wrote: Actually, between this and other things coming from 'R CMD check' these days, I disagree that this is reasonable at all - it's a hack

Re: [R-pkg-devel] apparent S3 methods note in R CMD check

2015-06-12 Thread Roebuck,Paul L
Actually, between this and other things coming from 'R CMD check' these days, I disagree that this is reasonable at all - it's a hack at best that only fixes this particular issue. Better would be to introduce lint-like directives that turn off certain R CMD check notes/warnings at different

Re: [R-pkg-devel] use of `dev.new` across platforms in RStudio

2015-06-13 Thread Martin Maechler
Alex Chubaty alex.chub...@gmail.com on Fri, 12 Jun 2015 14:41:56 -0700 writes: Dear list members, Use of platform-specific code to open new plot devices (e.g., `quartz`, `x11`) is discouraged in favour of using `dev.new`; however, this does not work in RStudio. A

Re: [R-pkg-devel] Package review

2015-06-10 Thread Xiaowei Zhan
Yes, you're right. Thanks for your help. Xiaowei On Wed, Jun 10, 2015 at 11:16 AM, Uwe Ligges lig...@statistik.tu-dortmund.de wrote: On 10.06.2015 17:58, Xiaowei Zhan wrote: Thanks for your help. I did send an email on Jun 6, but no response. Is this the email address for CRAN team:

Re: [R-pkg-devel] Package with multiple compilers?

2015-05-29 Thread Duncan Murdoch
On 29/05/2015 9:52 AM, Charles Determan wrote: I am actively working on an R package that will incorporate some CUDA code for using NVIDIA GPU devices. I am quite familiar with Rcpp for C++ code and accustomed to using a Makevars file for specifying compiler options. However I am stumped

Re: [R-pkg-devel] license for package

2015-05-29 Thread Dirk Eddelbuettel
On 29 May 2015 at 08:23, Drew Schmidt wrote: | | On 05/29/2015 07:56 AM, Dirk Eddelbuettel wrote: | Lastly, in many cases [eg when you link against libR], the aggregate work | will be under GPL (= 2) anyway. But within the aggregate work the code | you added can be under a different license

Re: [R-pkg-devel] package in 'Enhances' not in a repository

2015-07-01 Thread Uwe Ligges
On 01.07.2015 11:38, Matthew Wolak wrote: Hello all, I maintain the 'nadiv' package on CRAN and am unsure how best to comply with CRAN policy/not waste CRAN maintainers' time with respect to structuring my DESCRIPTION file to link with an R package not available in a public repository. (Note,

[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,

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

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

Re: [R-pkg-devel] download.file and https

2015-07-02 Thread Paul Gilbert
On 07/02/2015 10:52 PM, Henrik Bengtsson wrote: From R 3.2.0, check: capabilities(libcurl) libcurl TRUE TRUE means R was built such that HTTPS is supported. If you see FALSE, make sure libcurl is available when/if you build R from source. I do have TRUE for this. The default

Re: [R-pkg-devel] download.file and https

2015-07-02 Thread Joshua Ulrich
Hi Paul, On Thu, Jul 2, 2015 at 9:46 PM, Paul Gilbert pgilbert...@gmail.com wrote: (This problem with download.file() affects quantmod, and possibly several other packages. e.g. getSymbols('M2',src='FRED') fails.) Thanks for the note. I'm aware of this, and actually wanted to ask this list

Re: [R-pkg-devel] need some help to understand package build workflow

2015-07-31 Thread Duncan Murdoch
On 31/07/2015 6:14 PM, Kevin Ushey wrote: I'm not sure if that's correct -- from what I see, in the generated Rd documentation: - The 'usage' is drawn from the S4 generic, - The 'arguments' are drawn from the function. I think R CMD check is correctly warning about that. I agree the

Re: [R-pkg-devel] how to make r-release-osx-x86_64-mavericks machine support rgl 3D plots

2015-08-12 Thread Dirk Eddelbuettel
On 12 August 2015 at 09:07, Duncan Murdoch wrote: | On 12/08/2015 8:26 AM, Dirk Eddelbuettel wrote: | I frequently tests against all reverse dependencies against some of my | packages, ie Rcpp, RcppArmadillo, ... and packages using rgl generally fail | during these tests. [...] | A while

Re: [R-pkg-devel] how to make r-release-osx-x86_64-mavericks machine support rgl 3D plots

2015-08-12 Thread Søren Havelund Welling
I placed in top of all test scripts: if(!interactive()) Sys.setenv(RGL_USE_NULL=TRUE) #disable RGL for headless machines on 3) I guess I could build and test the github version of package on travis.ci in a OSX environment Many thanks for the help PS What happens when you squeeze grapes? -they

[R-pkg-devel] Strange timings reported from R CMD check

2015-08-18 Thread Benjamin Hofner
Dear all, When we prepared a release candidate form package mboost (see https://github.com/hofnerb/mboost/tree/master/pkg/mboostPatch for the code) we we found a strange issue regarding the timings. When running R CMD check --as-cran on the package mboost we found the following timings:

Re: [R-pkg-devel] browseURL in examples

2015-08-18 Thread Brian G. Peterson
On 08/18/2015 05:12 AM, Berry Boessenkool wrote: Hi all, In the CRAN package policies [1], it says Packages should not start external software (such as PDF viewers or browsers) during examples or tests unless that specific instance of the software is explicitly closed afterwards. If I want to

Re: [R-pkg-devel] Running tests on 32-bit and 64-bit

2015-08-17 Thread Duncan Murdoch
On 17/08/2015 5:03 AM, Thierry Onkelinx wrote: Dear all, Is there an easy way to run the tests of a package on both a 32-bit and 64-bit version? Ideally it should work when using R CMD check --as-cran on all OS's. Although I expect that multi architecture versions are only available on

Re: [R-pkg-devel] Running tests on 32-bit and 64-bit

2015-08-17 Thread Uwe Ligges
Use winbuilder, it runs 32-bit and 64-bit R tests on a Windows 64-bit platform. Not sure how you implemented the different precisions, but just go ahead and try on winbiulder. Best, Uwe Ligges On 17.08.2015 11:03, Thierry Onkelinx wrote: Dear all, Is there an easy way to run the tests of a

Re: [R-pkg-devel] Running tests on 32-bit and 64-bit

2015-08-17 Thread Kasper Daniel Hansen
Perhaps related: in the Bioconductor minfi package I do some checking on somewhat large matrices (450,000 times n). To save space, I compute a hash of the correct result using the digest package. As you, I ran into obvious issues with precision across platforms. To solve this, I take the matrix

[R-pkg-devel] Running tests on 32-bit and 64-bit

2015-08-17 Thread Thierry Onkelinx
Dear all, Is there an easy way to run the tests of a package on both a 32-bit and 64-bit version? Ideally it should work when using R CMD check --as-cran on all OS's. Although I expect that multi architecture versions are only available on windows. So a Windows only solution will be fine as well.

Re: [R-pkg-devel] how to make r-release-osx-x86_64-mavericks machine support rgl 3D plots

2015-08-17 Thread Hadley Wickham
| Check DetailsVersion: 1.8.3 | Check: tests | Result: ERROR | Running the tests in ‘tests/stdUsage.R’ failed. | Last 13 lines of output: | plot(ffTest42,col=Col,plot_GOF=TRUE,speed=T) | [1] compute goodness-of-fit with leave-one-out k-nearest neighbor(guassian kernel),

Re: [R-pkg-devel] Listing a package in Imports: when it's used outside of R directory

2015-08-15 Thread Duncan Murdoch
On 15/08/2015 2:36 AM, Dean Attali wrote: It seems like if a package is declared under the Imports: field in the DESCRIPTION file, and that package is not used in any code in the R directory, then I get an error when doing a R CMD CHECK Namespace in Imports field not imported from: 'DT'

Re: [R-pkg-devel] how to make r-release-osx-x86_64-mavericks machine support rgl 3D plots

2015-08-16 Thread Dr Gregory Jefferis
Dear Duncan, On 12 Aug 2015, at 14:07, Duncan Murdoch wrote: A while ago I added support in rgl to run on headless machines. Set the environment variable RGL_USE_NULL=TRUE before loading rgl, and should never try to call X11 (or whatever graphics system you're using). (It's also possible to

Re: [R-pkg-devel] browseURL in examples

2015-08-18 Thread Duncan Murdoch
On 18/08/2015 6:12 AM, Berry Boessenkool wrote: Hi all, In the CRAN package policies [1], it says Packages should not start external software (such as PDF viewers or browsers) during examples or tests unless that specific instance of the software is explicitly closed afterwards. If

Re: [R-pkg-devel] browseURL in examples

2015-08-18 Thread Mark van der Loo
Berry, why not use \href{[your link]}{[link text]} in the documentation details[1]? Best, Mark [1] https://cran.r-project.org/doc/manuals/R-exts.html#Marking-text Op di 18 aug. 2015 om 13:21 schreef Duncan Murdoch murdoch.dun...@gmail.com : On 18/08/2015 6:12 AM, Berry Boessenkool wrote:

Re: [R-pkg-devel] Running tests on 32-bit and 64-bit

2015-08-19 Thread Thierry Onkelinx
Dear all, Thanks for the feedback. @Uwe I'll have a look at winbuilder. Can it handle non-CRAN dependencies? E.g. packages which are available on github or bitbucket? I was rather looking for something which can run on my local machine. That would give me faster feedback than a remote system. My

[R-pkg-devel] Writing vignette and help files

2015-08-19 Thread Glenn Schultz
Hello All, The package that I am working no longer gives warnings upon closing connections and syntax is used properly (and understood - thanks to all that answered my questions).  I have two questions regarding package documentation. Any special considerations when creating multiple

[R-pkg-devel] Package with external non-Windows C library

2015-08-19 Thread Simon David Jacobs
Hi all, I am trying to write an R package that relies on an external C library. My understanding is that the prefered method is to include the C library in the `src' folder of the package. I'm running into two problems that may prevent this package from being distributed on CRAN: 1) The library

Re: [R-pkg-devel] recursive dependencies and install.packages()

2015-08-19 Thread John Fox
Dear list members, My question was prompted by a message from a user indicating that loading the Rcmdr package following installation via install.packages(Rcmdr) failed in the manner I indicated, with the indirect dependency ggplot2 missing. I thought that I was able to duplicate this error by

[R-pkg-devel] recursive dependencies and install.packages()

2015-08-19 Thread John Fox
Dear list members, I'm pretty sure (from memory) that this was discussed before but I can't find a relevant thread. The Rcmdr packages depends on the RcmdrMisc package which depends on the Hmisc package which imports the ggplot2 package. When the Rcmdr package is installed via

[R-pkg-devel] browseURL in examples

2015-08-18 Thread Berry Boessenkool
Hi all, In the CRAN package policies [1], it says Packages should not start external software (such as PDF viewers or browsers) during examples or tests unless that specific instance of the software is explicitly closed afterwards. If I want to refer to a website with browseURL in the

[R-pkg-devel] openmp

2015-08-21 Thread Joshua N Pritikin
Many CRAN packages offer improved performance when compiled with OpenMP. However, the MacOS and Windows binaries built by CRAN are built without openmp enabled. Would it be possible to build openmp enabled binaries for some CRAN packages? -- Joshua N. Pritikin Department of Psychology

Re: [R-pkg-devel] openmp

2015-08-24 Thread Joshua N Pritikin
On Sun, Aug 23, 2015 at 08:01:08AM +0200, Mark van der Loo wrote: Afaik, openmp is available on windows. According to writing R extensions: There is nothing to say what version of OpenMP is supported: version 3.0 (May 2008) is supported by recent versions of the Linux, _Windows_

Re: [R-pkg-devel] [[openmx-dev]] Re: openmp

2015-08-24 Thread Dirk Eddelbuettel
On 24 August 2015 at 11:02, Joshua N Pritikin wrote: | Currently, we have a configure script for package OpenMx that only | enables openmp if gcc is the compiler (OS X only). Nice to hear that | openmp is supported on Windows. Interesting that you opt to ignore OpenMP support on the platform

Re: [R-pkg-devel] openmp

2015-08-24 Thread Dirk Eddelbuettel
On 24 August 2015 at 09:14, Joshua N Pritikin wrote: | On Sun, Aug 23, 2015 at 08:01:08AM +0200, Mark van der Loo wrote: | Afaik, openmp is available on windows. According to writing R | extensions: | | There is nothing to say what version of OpenMP is supported: version | 3.0

Re: [R-pkg-devel] [[openmx-dev]] Re: openmp

2015-08-24 Thread Joshua N Pritikin
On Mon, Aug 24, 2015 at 09:29:34AM -0500, Dirk Eddelbuettel wrote: On 24 August 2015 at 09:14, Joshua N Pritikin wrote: | So I take that answer as, No, CRAN cannot possibly enable openmp for | binary builds. Is that correct? The CRAN maintainers are not withholding OpenMP from you because

Re: [R-pkg-devel] [[openmx-dev]] Re: [[openmx-dev]] Re: openmp

2015-08-24 Thread Joshua N Pritikin
On Mon, Aug 24, 2015 at 10:14:10AM -0500, Dirk Eddelbuettel wrote: On 24 August 2015 at 11:02, Joshua N Pritikin wrote: | Currently, we have a configure script for package OpenMx that only | enables openmp if gcc is the compiler (OS X only). Nice to hear that | openmp is supported on

[R-pkg-devel] [mcne...@mac.com: Re: [[openmx-dev]] Re: [[openmx-dev]] Re: [[openmx-dev]] Re: openmp]

2015-08-24 Thread Joshua N Pritikin
Dirk, I pick one of the packages you suggested and asked my colleague to test it on MacOS X. As you can see, it did not use more than 1 CPU. I inspected the Makevars and found that it relied on SHLIB_OPENMP_CXXFLAGS. This variable is set to -fopenmp on my laptop. Does CRAN add -fopenmp to

Re: [R-pkg-devel] [[openmx-dev]] Re: [[openmx-dev]] Re: openmp

2015-08-24 Thread Zhian Kamvar
The way several packages have implemented OpenMP is to wrap it in pre-compiler statements i.e.: // Include openMP if the compiler supports it #ifdef _OPENMP #include omp.h #endif This way, all compilers can build the code and those that have OpenMP (even modified versions of clang:

[R-pkg-devel] Browser Level for Conditional Function Parameter

2015-08-20 Thread Dario Strbenac
Good day, Why do I get a debug message and a change in browser level when I inspect the title variable ? For the comparison variable, it simply prints its value and remains at level 1. aFunction - function(comparison = c(within, classifier, selection), title =

Re: [R-pkg-devel] Browser Level for Conditional Function Parameter

2015-08-20 Thread Berry Boessenkool
I always get the browser level change in combination with if-statements... You haven't by change at some point in time set debug(aFunction) If so, set undebug(aFunction) Berry From: dstr7...@uni.sydney.edu.au To: r-package-devel@r-project.org Date: Thu, 20 Aug 2015 05:00:06 + Subject:

Re: [R-pkg-devel] Browser Level for Conditional Function Parameter

2015-08-20 Thread Duncan Murdoch
On 20/08/2015 1:00 AM, Dario Strbenac wrote: Good day, Why do I get a debug message and a change in browser level when I inspect the title variable ? For the comparison variable, it simply prints its value and remains at level 1. This is an R-devel question, not an R-pkg-devel question.

Re: [R-pkg-devel] how to make r-release-osx-x86_64-mavericks machine support rgl 3D plots

2015-08-16 Thread Dr Gregory Jefferis
On 12 Aug 2015, at 23:30, Søren Havelund Welling wrote: I placed in top of all test scripts: if(!interactive()) Sys.setenv(RGL_USE_NULL=TRUE) #disable RGL for headless machines System environment variables are inherited, so I think you should be able to do this once in your master test

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 the

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

[R-pkg-devel] new maintainer sought for maps packages

2015-07-29 Thread Ray Brownrigg
I am about to retire from my 'day job' and will therefore have little further association with acadaemia/research in general or R in particular. I am currently maintainer for the 3 mapping packages maps, mapdata and mapproj. Is there anyone out there who would be willing to take this on? I

Re: [R-pkg-devel] .tar vs. binary builds

2015-08-03 Thread Duncan Murdoch
On 03/08/2015 4:31 PM, Glenn Schultz wrote: Hello All, I have a package which I would like to distribute. However, there are some classes that are not exported if I provide a tar file can the user decompress the tar to the source and then export class. I am thinking the answer is year

Re: [R-pkg-devel] .tar vs. binary builds

2015-08-03 Thread Ben Bolker
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 15-08-03 06:34 PM, Glenn Schultz wrote: Hi Ben, [Please keep the list cc'd in your replies.] Thanks for answering so quickly. Basically, I want to be able to distribute the package to users and testers some are on Mac others Windows. I

Re: [R-pkg-devel] .tar vs. binary builds

2015-08-03 Thread Dirk Eddelbuettel
On 3 August 2015 at 19:32, Glenn Schultz wrote: | Got it thanks - I want to achieve maximum exposure and transparency So provide access to the source code, as well as to installable binaries. That is a recipe many of us have used for years if not decades. Dirk -- http://dirk.eddelbuettel.com

Re: [R-pkg-devel] .tar vs. binary builds

2015-08-03 Thread Glenn Schultz
Hi Ben, I get it thanks - feedback very helpful. -Glenn   On Aug 03, 2015, at 06:06 PM, Ben Bolker bbol...@gmail.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 15-08-03 06:34 PM, Glenn Schultz wrote: Hi Ben, [Please keep the list cc'd in your replies.] Thanks for answering

Re: [R-pkg-devel] .tar vs. binary builds

2015-08-03 Thread Glenn Schultz
Got it thanks - I want to achieve maximum exposure and transparency Sent from my iPhone On Aug 3, 2015, at 5:10 PM, Duncan Murdoch murdoch.dun...@gmail.com wrote: On 03/08/2015 4:31 PM, Glenn Schultz wrote: Hello All, I have a package which I would like to distribute. However, there are

Re: [R-pkg-devel] R CMD build with configure-args

2015-07-30 Thread Dirk Eddelbuettel
Besides what Duncan said, relying on user to supply arguments is pretty bad as it more or less guarantees _any_ automated test will not succeed (for lack of involvement of the sage user). Writing configure scripts feels like yet another painful step, but it really is not that hard if you know a

Re: [R-pkg-devel] R CMD build with configure-args

2015-07-30 Thread Russell Almond
The behavior changed somewhere along the line. I think it is related to the version bump from 3.1 to 3.2, but it could have been earlier. It used to be when I wanted to release a version of my package I would run: INSTALL check build INSTALL --build (on each of a Windows and Mac box). to

Re: [R-pkg-devel] R CMD build with configure-args

2015-07-30 Thread Duncan Murdoch
On 30/07/2015 2:53 PM, Russell Almond wrote: I've got a package that uses C code to link R to a third-party library. I've set up my configure script to take an argument --with-netica which passes the location of the library, header files, c. So I can install the package using: $ R

[R-pkg-devel] need some help to understand package build workflow

2015-07-30 Thread Glenn Schultz
Hi All, I have a package stable and working.  Now, I am trying to consolidate some functions that share similar inputs.  Example below.  So, I branched on github and work with the branch but now when I run the R check in studio I get the following warning: * checking Rd \usage sections ...

Re: [R-pkg-devel] R CMD build with configure-args

2015-07-30 Thread Russell Almond
Thanks for the suggestion. I do have a configure script (that is what is reading the --with-netica arg) but I didn't think about searching the standard install locations. I can probably use that to work around this problem. However, that doesn't completely solve the problem. If I want to

Re: [R-pkg-devel] need some help to understand package build workflow

2015-07-31 Thread Duncan Murdoch
On 31/07/2015 7:11 AM, Hadley Wickham wrote: It seems arguable that this is actually a roxygen bug - the function that's actually exported from the package does not have a type argument. The package fails R CMD check because of a bad .Rd file. If a user had written that file, it would be user

Re: [R-pkg-devel] .tar vs. binary builds

2015-08-03 Thread Ben Bolker
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 15-08-03 04:31 PM, Glenn Schultz wrote: Hello All, I have a package which I would like to distribute. However, there are some classes that are not exported if I provide a tar file can the user decompress the tar to the source and then export

Re: [R-pkg-devel] new maintainer sought for maps packages

2015-07-31 Thread Ray Brownrigg
I have been somewhat surprised by the number of positive responses to my message. I have found a candidate for the position of maintainer of the maps, mapdata and mapproj packages. I have confidence that Alex Deckmyn alex.deck...@meteo.be will do at least as good a job as I have done in this

[R-pkg-devel] R CMD build with configure-args

2015-07-30 Thread Russell Almond
I've got a package that uses C code to link R to a third-party library. I've set up my configure script to take an argument --with-netica which passes the location of the library, header files, c. So I can install the package using: $ R CMD INSTALL RNetica

Re: [R-pkg-devel] Visible bindings and reference classes

2015-08-11 Thread Martin Maechler
Colin Gillespie csgilles...@gmail.com on Mon, 10 Aug 2015 20:33:32 + writes: Dear All, I have a package that uses reference classes. When I build the package I get numerous notes of the sort Note: no visible binding for '-' assignment to 'pars' I've tried using

Re: [R-pkg-devel] Visible bindings and reference classes

2015-08-11 Thread Colin Gillespie
To your question: Reference classes are used in *many* places, and the use of ' - ' is really standard there. e.g., package 'lme4', or 'pcalg' are two packages I'm involved with, which use ref.classes and ' - ' but are fine with that. So there must be something peculiar in your

Re: [R-pkg-devel] Visible bindings and reference classes

2015-08-11 Thread William Dunlap
You can avoid the temporary file by replacing dput(def, file= (tf - tempfile())) compiler::cmpfile(tf) with cdef - compiler::compile(def) #Note: no visible binding for '-' assignment to 'ConfigString' The compiled code appears to work. eval(cdef) c1 - Config$new() c1 #Reference

[R-pkg-devel] CRAN submission which requires third party software?

2015-08-11 Thread Charles Determan
I am beginning to reach the completion of a new package I would like to submit to CRAN. However, there are a few aspects of it that I would like some guidance prior to submitting. 1. It requires some third party software (i.e. an OpenCL SDK) to be installed before it will compile (it contains

Re: [R-pkg-devel] Visible bindings and reference classes

2015-08-11 Thread William Dunlap
This is a problem in the compiler package. Here is a way to reproduce it: def - quote(Config - setRefClass(Config, fields = list( ConfigString = character), methods = list( # Constructor initialize = function() { ConfigString - Hello, World! })

Re: [R-pkg-devel] CRAN submission which requires third party software?

2015-08-11 Thread Dirk Eddelbuettel
On 11 August 2015 at 11:49, Charles Determan wrote: | I am beginning to reach the completion of a new package I would like to | submit to CRAN. However, there are a few aspects of it that I would like | some guidance prior to submitting. | | 1. It requires some third party software (i.e. an

[R-pkg-devel] not resolved from current namespace error

2015-08-11 Thread Ignacio Martinez
I'm trying to create a package that uses a MPI Fortran module. I have a working version https://github.com/ignacio82/MyPi of that package that uses a Fortran module without MPI. When I run the function `FMPIpi(DARTS = 5000, ROUNDS = 100, cores=2)` I get the following errors: FMPIpi(DARTS =

Re: [R-pkg-devel] not resolved from current namespace error

2015-08-11 Thread Tom Wainwright
Not sure, but your problem might be answered in the .Fortran() help page: All Fortran compilers known to be usable to compile R map symbol names to lower case, and so does .Fortran. I've been caught by that before, and found that using all lowercase names for Fortran routines in R is safest.

Re: [R-pkg-devel] Working with connections

2015-08-09 Thread Hadley Wickham
Also it's a little strange to put an RDS file _inside_ a gz, since normally the compression is done internally. And are you sure you should be exposing this data via a function, rather than using the regular package data mechanism? Hadley On Sun, Aug 9, 2015 at 7:04 AM, Joshua Ulrich

Re: [R-pkg-devel] Working with connections

2015-08-09 Thread Glenn Schultz
Hi Joshua, Thank-you. I did not realize that the call to return closed the connection -Glenn On Aug 9, 2015, at 9:04 AM, Joshua Ulrich josh.m.ulr...@gmail.com wrote: On Sun, Aug 9, 2015 at 8:59 AM, Glenn Schultz glennmschu...@me.com wrote: Hi All, I use connections to open and close data

[R-pkg-devel] Working with connections

2015-08-09 Thread Glenn Schultz
Hi All,  I use connections to open and close data folders needed by my package.  After each function closes I get the following warnings (depending on the connection that has been opened). 10: closing unused connection 3

Re: [R-pkg-devel] Bug? Makevars ignores FC=mpif90

2015-08-10 Thread Ignacio Martinez
Thanks peter. 1. Does it say anywhere that the build process should use src/Makevars? I'm not sure, where should it say that? I'm using the default options in Rstudio to create a package 2. Also notice that an important part of the package concept is that packages can be distributed. The package

[R-pkg-devel] Bug? Makevars ignores FC=mpif90

2015-08-10 Thread Ignacio Martinez
Hi, I'm learning to develop R packages that use Fortran (and MPI). I recently asked a question on stack-overflow and I was told to contact this list with a followup question. When I add to src/Makevars the follwoing line FC=mpif90 Rstudio ignores it when I click `Build and Reload`. But, if I

[R-pkg-devel] Visible bindings and reference classes

2015-08-10 Thread Colin Gillespie
Dear All, I have a package that uses reference classes. When I build the package I get numerous notes of the sort Note: no visible binding for '-' assignment to 'pars' I've tried using GlobalVariables, but that didn't solve the issue. After some googling, I came across the page

[R-pkg-devel] dplyr usage inside another package

2015-08-10 Thread Jonathan Callahan
Greetings, I'm using dplyr inside of another package with examples like this: data - dplyr::filter(data, datetime = trange[1], datetime = trange[2]) When I run my package through R CMD check I get the following NOTES: monitorSubsetData: no visible binding for global variable ‘datetime’ I

Re: [R-pkg-devel] dplyr usage inside another package

2015-08-10 Thread Uwe Ligges
On 11.08.2015 00:35, Jonathan Callahan wrote: Greetings, I'm using dplyr inside of another package with examples like this: data - dplyr::filter(data, datetime = trange[1], datetime = trange[2]) When I run my package through R CMD check I get the following NOTES: monitorSubsetData: no

Re: [R-pkg-devel] dplyr usage inside another package

2015-08-10 Thread Jennifer Bryan
Hi Jonathan, Re: this note: no visible binding for global variable ‘datetime’ In programming and packages, it is recommended to use special versions of dplyr’s single table verbs, e.g., use `filter_()` as opposed to `filter()`. Note the underscore. The “underscore” functions use standard

Re: [R-pkg-devel] dplyr usage inside another package

2015-08-10 Thread Jonathan Callahan
Thanks Jenny! Just the advice I was looking for. On Mon, Aug 10, 2015 at 4:40 PM, Jennifer Bryan je...@stat.ubc.ca wrote: Hi Jonathan, Re: this note: no visible binding for global variable ‘datetime’ In programming and packages, it is recommended to use special versions of dplyr’s single

Re: [R-pkg-devel] Working with connections - What is correct?

2015-08-10 Thread Glenn Schultz
Hi Dirk, Thanks for your response, I get the point on return(). For me, it is a security blanket - I just need to let that go rather than justify keeping it. I will refactor the connections and just get comfortable without return(). Thanks, Glenn  On Aug 10, 2015, at 09:59 PM, Dirk

  1   2   3   4   5   6   7   8   9   10   >