PNNL-TES / TES-drydown

MIT License
2 stars 1 forks source link

massdata #1

Closed kaizadp closed 5 years ago

kaizadp commented 5 years ago

https://github.com/PNNL-TES/TES-drydown/blob/62e594727ea7a8c6fb3d1b1236268d4d5e7038b3/README.Rmd#L27

@bpbond We are pulling in data from the drake_plan.R file, correct? I can't go beyond this, because it can't find the file.

kaizadp commented 5 years ago

https://github.com/PNNL-TES/TES-drydown/blob/62e594727ea7a8c6fb3d1b1236268d4d5e7038b3/drake_plan.R#L30

I'm guessing this is where we create the massdata file? But I'm not sure what's going on here.

bpbond commented 5 years ago

Hi @kaizadp - have you tried (i) cloning the entire repository and then (ii) source'ing drake_plan.R? (You will need to install a few packages, listed at the top, for it to work.)

massdata is a data object that's downloaded from Sarah's google sheet, not a file, which is why you can't find it.

kaizadp commented 5 years ago

I added source("drake_plan.R") to Readme.Rmd

Got this error:

Quitting from lines 27-41 (README.Rmd) Error: key 'massdata' ('objects') not found Execution halted

bpbond commented 5 years ago

Ah, okay. Sorry–this isn't really documented, because this repo is still rudimentary and I wasn't expecting anyone else to try to run this.

  1. Remove any modifications to drake_plan.R
  2. source() the drake_plan.R file
  3. Type make(plan) at the command line

This orders drake to build ('make') the plan, which is to (i) download the mass data, line 31; (ii) read the mass data into memory, 32; and (iii) generate a new report, lines 34-38.

kaizadp commented 5 years ago

Success! Thanks