ceff-tech / ffc_api_client

An R client for the online Functional Flows Calculator API
https://ceff-tech.github.io/ffc_api_client
9 stars 3 forks source link

add default directory for output_folder in step_one #63

Open ryanpeek opened 4 years ago

ryanpeek commented 4 years ago

currently if output_folder isn't set by user, step_one_functional_flow_results() will fail with this error:

Error in file(file, ifelse(append, "a", "w")) : 
  cannot open the connection
In addition: Warning message:
In file(file, ifelse(append, "a", "w")) :
  cannot open file 'NA/10017314_ffc_percentiles.csv': No such file or directory

Will add a PR to address this so it defaults to working directory instead of failing, something like:

step_one_functional_flow_results( output_folder=".")