Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create helpful error for setwd(exportLocation()) #391

Open
lindsayplatt opened this issue Oct 4, 2018 · 1 comment
Open

create helpful error for setwd(exportLocation()) #391

lindsayplatt opened this issue Oct 4, 2018 · 1 comment

Comments

@lindsayplatt
Copy link

When trying to run vizmake() with webpack on Jenkins, if the target dir doesn't already exist, you will get an error about Error in setwd(vizlab::exportLocation()): cannot change working directory. It is because the directory doesn't exist. I had to run mkdir target and then try again. It would be nice if there was an error that popped up to tell you this (or maybe a better way to do this entirely).

Maybe an error around here: https://github.com/USGS-VIZLAB/vizlab/blob/master/R/webpacker.R#L44

@lindsayplatt
Copy link
Author

Just came across this again. vizlab::vizmake() used to automatically create the target dir if it didn't already exist...should probably still have that behavior. I think the problem now is that webpack tries to run setwd(exportLocation()) before vizmake() adds the target dir.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant