DataONEorg / rdataone

R package for reading and writing data at DataONE data repositories
http://doi.org/10.5063/F1M61H5X
36 stars 19 forks source link

Change 'lazyLoad' behavior #258

Closed gothub closed 3 years ago

gothub commented 3 years ago

Update the 'lazyLoad' parameter for 'getDataPackage()' and 'getDataObject()' so that:

  1. when 'lazyLoad=T', the object will always be lazy loaded, regardless of size
  2. when 'lazyLoad=F' and 'limit' is not specified, objects will not be lazy loaded, regardless of size
  3. when 'lazyLoad=F' and 'limit=' is specified, objects will not be lazy loaded if they are smaller than the 'size' specified, if objects are larger than the 'size' specified, they will be lazy loaded.
mbjones commented 3 years ago

Thanks for the summary, @peter.

gothub commented 3 years ago

Update in commit d11a69bb2aa70c9964945cb258eebf8e8b9ec534

Documentation changed for command line roxygen and 'upload-package' vignette. Here is an excerpt from the command line docs for '?getDataPackage':

Screen Shot 2020-09-02 at 2 01 05 PM