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 wrote: I am working on updating the RGoogleDocs package to use OAuth2, since the old api was recently turned off (at my job we use it

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

2015-06-05 Thread Dirk Eddelbuettel
On 5 June 2015 at 15:19, Neal Fultz wrote: | I am working on updating the RGoogleDocs package to use OAuth2, since the | old api was recently turned off (at my job we use it as a poor mans | database). | | As part of the auth process, I need to send google a client key and secret | in order to ga

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

2015-06-05 Thread Duncan Murdoch
On 05/06/2015 6:19 PM, Neal Fultz wrote: > I am working on updating the RGoogleDocs package to use OAuth2, since the > old api was recently turned off (at my job we use it as a poor mans > database). > > As part of the auth process, I need to send google a client key and secret > in order to gain

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

2015-06-05 Thread Neal Fultz
I am working on updating the RGoogleDocs package to use OAuth2, since the old api was recently turned off (at my job we use it as a poor mans database). As part of the auth process, I need to send google a client key and secret in order to gain access to a spreadsheet. Is there a 'safe' place to s

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

2015-06-05 Thread Charles Geyer
The answer is do not try to manage the RNG from C. Just do GetRNGstate(); then generate a lot of random variates and then PutRNGstate(); just before leaving. There is only one call to each in one call of C from R. This is TRT (the Right Thing). Anything else is TWT (the Wrong Thing). Start

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

2015-06-05 Thread Charles Determan
I ultimately found more details in the 'Writing R Extensions' in another section (http://www.hep.by/gnu/r-patched/r-exts/R-exts_11.html). I needed to assign the object files to the OBJECTS variable with an '=' sign and remove anything below the .so block. The new block that successfully compiled

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

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