{"action":"created","issue":{"url":"https://api.github.com/repos/USGS-VIZLAB/vizlab/issues/391","repository_url":"https://api.github.com/repos/USGS-VIZLAB/vizlab","labels_url":"https://api.github.com/repos/USGS-VIZLAB/vizlab/issues/391/labels{/name}","comments_url":"https://api.github.com/repos/USGS-VIZLAB/vizlab/issues/391/comments","events_url":"https://api.github.com/repos/USGS-VIZLAB/vizlab/issues/391/events","html_url":"https://github.com/USGS-VIZLAB/vizlab/issues/391","id":366574541,"node_id":"MDU6SXNzdWUzNjY1NzQ1NDE=","number":391,"title":"create helpful error for setwd(exportLocation())","user":{"login":"lindsaycarr","id":13220910,"node_id":"MDQ6VXNlcjEzMjIwOTEw","avatar_url":"https://avatars3.githubusercontent.com/u/13220910?v=4","gravatar_id":"","url":"https://api.github.com/users/lindsaycarr","html_url":"https://github.com/lindsaycarr","followers_url":"https://api.github.com/users/lindsaycarr/followers","following_url":"https://api.github.com/users/lindsaycarr/following{/other_user}","gists_url":"https://api.github.com/users/lindsaycarr/gists{/gist_id}","starred_url":"https://api.github.com/users/lindsaycarr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lindsaycarr/subscriptions","organizations_url":"https://api.github.com/users/lindsaycarr/orgs","repos_url":"https://api.github.com/users/lindsaycarr/repos","events_url":"https://api.github.com/users/lindsaycarr/events{/privacy}","received_events_url":"https://api.github.com/users/lindsaycarr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-04T00:03:57Z","updated_at":"2018-12-18T18:44:04Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"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). \r\n\r\nMaybe an error around here: https://github.com/USGS-VIZLAB/vizlab/blob/master/R/webpacker.R#L44"},"comment":{"url":"https://api.github.com/repos/USGS-VIZLAB/vizlab/issues/comments/448326287","html_url":"https://github.com/USGS-VIZLAB/vizlab/issues/391#issuecomment-448326287","issue_url":"https://api.github.com/repos/USGS-VIZLAB/vizlab/issues/391","id":448326287,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0ODMyNjI4Nw==","user":{"login":"lindsaycarr","id":13220910,"node_id":"MDQ6VXNlcjEzMjIwOTEw","avatar_url":"https://avatars3.githubusercontent.com/u/13220910?v=4","gravatar_id":"","url":"https://api.github.com/users/lindsaycarr","html_url":"https://github.com/lindsaycarr","followers_url":"https://api.github.com/users/lindsaycarr/followers","following_url":"https://api.github.com/users/lindsaycarr/following{/other_user}","gists_url":"https://api.github.com/users/lindsaycarr/gists{/gist_id}","starred_url":"https://api.github.com/users/lindsaycarr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lindsaycarr/subscriptions","organizations_url":"https://api.github.com/users/lindsaycarr/orgs","repos_url":"https://api.github.com/users/lindsaycarr/repos","events_url":"https://api.github.com/users/lindsaycarr/events{/privacy}","received_events_url":"https://api.github.com/users/lindsaycarr/received_events","type":"User","site_admin":false},"created_at":"2018-12-18T18:44:04Z","updated_at":"2018-12-18T18:44:04Z","author_association":"CONTRIBUTOR","body":"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."}}
{"actor":{"display_login":"lindsaycarr"}}