Re: [R-pkg-devel] RData files with identical objects in package

2019-01-13 Thread Troels Ring
Thank you so much! Perhaps it could be mentioned in the official documentation on writing R extensions - even if - if I can read English - the default is to avoid "lazyData" loading - and "laxyData" loading is in some opposition to loading using data() - whereas - if we use RStudio, and make an R

Re: [R-pkg-devel] Getting started with memory debugging

2019-01-13 Thread Dirk Eddelbuettel
On 14 January 2019 at 09:48, Michael Chirico wrote: | Hello all, | | I'm getting started doing some debugging of memory errors and got stuck | trying to reproduce the errors found during my CRAN submission process: | | https://cran.r-project.org/web/checks/check_results_geohashTools.html | | S

[R-pkg-devel] Getting started with memory debugging

2019-01-13 Thread Michael Chirico
Hello all, I'm getting started doing some debugging of memory errors and got stuck trying to reproduce the errors found during my CRAN submission process: https://cran.r-project.org/web/checks/check_results_geohashTools.html Starting with the clang-ASAN issues, my approach was to try and use the

Re: [R-pkg-devel] RData files with identical objects in package

2019-01-13 Thread peter dalgaard
I think it is illegal if you use the lazyload database, because that is indexed by name and contains every object that would be created by data(). This creates an obvious issue if two objects share a name. Once you use the lazyload database, loading the package creates an environment which is

Re: [R-pkg-devel] RData files with identical objects in package

2019-01-13 Thread Troels Ring
Thanks a lot - I'm sure you are right that I could just use different names but I cannot understand why it could cause problem to have two different well formated .RData files in the /data directory both with an "x" - is that really illegal? I cannot see it stated in the official munual - but it

Re: [R-pkg-devel] RData files with identical objects in package

2019-01-13 Thread Troels Ring
Thanks a lot - here's is what I get: A single object matching ‘x’ was found It was found in the following places package:try with value [1] 100 Now put in the last "xfile.RData" - and "afile.RData" is still muted Restarting R session... > library(try) > x [1] 100 > getAnywhere("x") A single

Re: [R-pkg-devel] RData files with identical objects in package

2019-01-13 Thread Michael Dewey
Dear Troels Perhaps I misunderstand what you are trying to do but would it be possible to put each x and y into a list or a dataframe with different names and then modify your usgae to pull them from there? Then there would be no danger of users getting the wrong x and y Michael On 13/01/20

Re: [R-pkg-devel] RData files with identical objects in package

2019-01-13 Thread Duncan Murdoch
On 13/01/2019 3:38 a.m., Troels Ring wrote: Dear friends - I have a package under creation making heavy calculations on chemical/clinical data and I plan to include as "examples" the use of some literature data used in my papers. To illustrate what then occurs, I made two RData files consisting o

[R-pkg-devel] RData files with identical objects in package

2019-01-13 Thread Troels Ring
Dear friends - I have a package under creation making heavy calculations on chemical/clinical data and I plan to include as "examples" the use of some literature data used in my papers. To illustrate what then occurs, I made two RData files consisting only of x and y with different values for x and