[R-pkg-devel] Proper way to ask a user to set permanent variables?

2020-01-14 Thread Jonathan Greenberg
Folks: My package gdalUtils is a wrapper for a set of binaries on disk (the GDAL Utilities) -- these have about as many places to install as there are people installing it, and the system environment variables aren't always much help (they aren't always set) for locating them. My package is tr

Re: [R-pkg-devel] Proper way to ask a user to set permanent variables?

2020-01-14 Thread Duncan Murdoch
On 14/01/2020 11:06 a.m., Jonathan Greenberg wrote: Folks: My package gdalUtils is a wrapper for a set of binaries on disk (the GDAL Utilities) -- these have about as many places to install as there are people installing it, and the system environment variables aren't always much help (they a

[R-pkg-devel] seeking help regarding the valgrind error

2020-01-14 Thread Yang Feng
Hi All, Happy new year! I just joined this mailing list and would like to post my first question. I received a message earlier this month regarding an error in my R package RAMP https://cran.r-project.org/web/packages/RAMP/index.html I need to update the package by the end of this month to preven

Re: [R-pkg-devel] Proper way to ask a user to set permanent variables?

2020-01-14 Thread Gábor Csárdi
You can use the rappdirs package to look up the standard places for permanent config, cache etc. files. E.g. on macOS: ❯ rappdirs::user_cache_dir() [1] "/Users/gaborcsardi/Library/Caches" Gabor On Tue, Jan 14, 2020 at 4:10 PM Jonathan Greenberg wrote: > > Folks: > > My package gdalUtils is a wr

Re: [R-pkg-devel] seeking help regarding the valgrind error

2020-01-14 Thread Serguei Sokol
Hi Yang, Le 14/01/2020 à 17:29, Yang Feng a écrit : Hi All, Happy new year! I just joined this mailing list and would like to post my first question. I received a message earlier this month regarding an error in my R package RAMP https://cran.r-project.org/web/packages/RAMP/index.html I need t

Re: [R-pkg-devel] Proper way to ask a user to set permanent variables?

2020-01-14 Thread Rainer M Krug
I second that - it provides the most consistent way of storing information permanently. I was in a similar situation, and ended up using the function at https://github.com/Exp-Micro-Ecol-Hub/dmdScheme/blob/master/R/cache.R