Trying to load from a GCS bucket on startup (using .First as shared here) and directories and subdirectories are not being loaded.
(Assuming a global bucket/auth/etc., I can make a more formal reprex if needed but I believe this will fail across the board):
library(googleCloudStorageR)
dir.create("testdir")
file.create("testdir/testfile.test")
gcs_save_all()
file.remove("testdir/testfile.test")
file.remove("testdir")
gcs_load_all()
I think the offending line is:
|
mapply(function(x, name){ |
I believe that the recursive argument on file.copy() will only work when specifying a directory, not file-by-file as the mapply() call does.
Trying to load from a GCS bucket on startup (using .First as shared here) and directories and subdirectories are not being loaded.
(Assuming a global bucket/auth/etc., I can make a more formal reprex if needed but I believe this will fail across the board):
I think the offending line is:
googleCloudStorageR/R/rsession.R
Line 211 in 4391788
I believe that the recursive argument on file.copy() will only work when specifying a directory, not file-by-file as the mapply() call does.