[R-pkg-devel] Best way to cache a dataframe available for all functions in a package

2021-11-26 Thread X FiM
Dear all, I am writing a package that needs to load some data from a URL and have such data (meta data) available when using other functions in the package, and I would like some advice on how to properly manage such situation. My first guess would be to create a function to downloads that meta

Re: [R-pkg-devel] Best way to cache a dataframe available for all functions in a package

2021-11-26 Thread X FiM
Dear Lionel, Hugh and Dirk, Many, many thanks for your input. I will definitively study the different proposals and will check on the different implementations and ideas to evaluate what is the most convenient. And will do a crash course on environments and learn something new. At first sight the

[R-pkg-devel] UTF-8 characters inside R functions for data transformation

2021-12-21 Thread X FiM
Dear all, Somewhat related to a question that I posted a while ago (see https://stat.ethz.ch/pipermail/r-package-devel/2021q4/007540.html), once I've got a dataframe in my cache, some of the functions need to use some of the variables. It turns out that some of the columns contain UTF-8 characters