Closed MarkEdmondson1234 closed 2 years ago
I had to revert this code introduced in https://github.com/MarkEdmondson1234/googleCloudRunner/pull/122 as it ended up deleting my test directory - the unlink() should only ever be directed at temporary files.
I ended up using withr::with_folder()
The good practice message for code here within cr_build_upload_gcs
https://github.com/MarkEdmondson1234/googleCloudRunner/blob/ed6b9de67025fe5f2ce162dbd2a3d6151a224866/R/build_sources.R#L264-L288
Its done to preserve file structure, but see if a way to avoid setwd()