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

dir_create( , recurse = TRUE) produces [EPERM] Failed to stat ... operation not permitted #402

Closed
nalsalam opened this issue Dec 16, 2022 · 1 comment

Comments

@nalsalam
Copy link

I am using an AWS cloud machine and drive with Windows 10

proj_set expands U: expands to //AWS etc.

rstudioapi::getActiveProject()
[1] "U:/Projects/CPSprocessR"

usethis::proj_set(rstudioapi::getActiveProject())
Setting active project to '//AWSPUBWFS1191.CBO.GOV/HOME/Nabeel/Projects/CPSprocessR'

setup

project <- usethis::proj_get()

library(fs)

dir_ls()
CPSprocessR.Rproj data DESCRIPTION
inst man NAMESPACE
notes R tests
vignettes

base R works

dir.create(path(project, "tmp1"), recursive = FALSE)
dir.create(path(project, "tmp2"), recursive = TRUE)

fs version doesn't with recurse = TRUE

dir_create(path(project, "tmp3"), recurse = FALSE)
dir_create(path(project, "tmp4"), recurse = TRUE)
Error: [EPERM] Failed to stat '//AWSPUBWFS1191.CBO.GOV/HOME': operation not permitted

tmp4 not created

dir_ls()
CPSprocessR.Rproj data DESCRIPTION
inst man NAMESPACE
notes R tests
tmp1 tmp2 tmp3
vignettes

I am guessing this is causing usethis::create_package and usethis::create_vignette to crash R and RStudio

@gaborcsardi
Copy link
Member

That means that the operating system is telling fs that it cannot create that directory because of lacking permissions. I don't think we can do much about that in fs.

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

2 participants