[R-pkg-devel] Cannot implement test configuration

Ivan Krylov |kry|ov @end|ng |rom d|@root@org
Thu Sep 4 00:40:33 CEST 2025


В Wed, 3 Sep 2025 05:50:50 +0000
"Hüsing, Johannes" <Johannes.Huesing using krebsregister.nrw.de> пишет:

> ✔ Setting active project to
> "//some-server/UserHome$/jhuesing/project_path

So, the goal is for a drive letter path to be in the above output
instead of a UNC path?

> structure(list(message = "[EPERM] Failed to stat
> '//some-server/UserHome$': operation not permitted"), class =
> c("EPERM", "fs_error", "error", "condition"), location =
> "utils.cc:16"))

The error happens in fs::dir_create()... [1]

> 7: dir_create(path, recurse = TRUE)
> 6: create_directory(proj_path(path))
> 5: use_directory(path("tests", "testthat"))

...but the path originates from somewhere in usethis::proj_path().

Does getwd() return a path with a drive letter? If not, does it help to
setwd() to a drive letter path first?

Apparently usethis::proj_get() uses a UNC path. Does it help to give a
drive letter path to usethis::proj_set() first?

-- 
Best regards,
Ivan

[1]
https://github.com/r-lib/fs/blob/0d261dd965404cb02ab57788f4437fa057a9e0a3/src/dir.cc#L31
https://github.com/r-lib/fs/blob/main/src/utils.cc#L16



More information about the R-package-devel mailing list