Re: [R-pkg-devel] CRAN, API packages, Keys and tests

2020-09-07 Thread Rainer M Krug
Hi Josh, Thanks for the thumbs-up for CRAN. With the secure variable on Travis - that is exactly what I am doing. Thanks a lot, Rainer > On 4 Sep 2020, at 16:22, Joshua Ulrich wrote: > > On Fri, Sep 4, 2020 at 9:20 AM Joshua Ulrich > wrote: >> >> Hi Rainer,

Re: [R-pkg-devel] CRAN, API packages, Keys and tests

2020-09-04 Thread Joshua Ulrich
On Fri, Sep 4, 2020 at 9:20 AM Joshua Ulrich wrote: > > Hi Rainer, > > You could set an environment variable with the API key, and only run > the tests if the variable is set. > Sorry, I missed that you're already doing this. I confirm that it works for CRAN. I also set my API key as a private/s

Re: [R-pkg-devel] CRAN, API packages, Keys and tests

2020-09-04 Thread Joshua Ulrich
Hi Rainer, You could set an environment variable with the API key, and only run the tests if the variable is set. Here's an example that I use: https://github.com/joshuaulrich/quantmod/blob/master/tests/test_getSymbols.R#L4 Best, Josh On Fri, Sep 4, 2020 at 3:25 AM Rainer M Krug wrote: > > I k

[R-pkg-devel] CRAN, API packages, Keys and tests

2020-09-04 Thread Rainer M Krug
I know this has been asked a few times - but I can’t find anything which might help me. I have a package (https://github.com/rkrug/ROriginStamp) which wraps around API calls to OriginStamp (https://originstamp.com) to obtain trusted time stamps. The package works, but the tests are the problem