benmarwick / rrtools

rrtools: Tools for Writing Reproducible Research in R
Other
670 stars 85 forks source link

Don't set working directory when not in RStudio. #67

Closed sbfnk closed 5 years ago

sbfnk commented 5 years ago

Fixes a problem where use_compendium currently fails in non-RStudio environments, because the working directory is already set in usethis::open_project.

benmarwick commented 5 years ago

We've had a close look into this, and it seems that we need to supply an absolute path as path due to a recent change in the way usethis::create_package works. We'll come back to this! But everything is working fine in RStudio.