ddalthorp / GenEst

R package development for a generalized mortality estimator
Other
6 stars 6 forks source link

data #585

Closed ddalthorp closed 6 years ago

ddalthorp commented 6 years ago

CRAN may balk at us trying to put 5 essentially identical copies of the data into the package.

I'm wondering if we can just use the .Rdata version and then create .csv's for download when the user clicks to download. This would work best with a toggle for format somewhere (semicolon or comma).

As stand-alones, the .csv's take up nearly 3 MB. By contrast, the .Rdata's take up about 70 kB total.

ddalthorp commented 6 years ago

Having just one copy rather than 5 makes it a heckuvalot easier and safer to make changes too!

juniperlsimonis commented 6 years ago

what do you mean 5 copies of the same data? there's just the .Rdata and the .csvs in inst/extdata, right? and I get the whole inst/extdata folder as 700-800 kB, not 3 MB? image

ddalthorp commented 6 years ago

OK. it looks like only three (please forgive my bad memory...I thought we had separate copies for "app" and "deployment" but that was just the User Guides (issue is resolved) and the icons (issue is just the way it is...no way around it):

  1. .Rdata
  2. .csv
  3. csv2
juniperlsimonis commented 6 years ago

where are csv2?

ddalthorp commented 6 years ago

They aren't there, but they were on the agenda.

But that requires maintaining three identical copies of the data and an extra 1.5 MB storage.

ddalthorp commented 6 years ago

I figured out a solution...keep just the .RData's and provide links to download in either .csv or .csv2 format. For the other downloads, mimic the format of the last upload.