Skip to content
Back to formatted view

Raw Message

Message-ID: <20250904014033.66de4e85@Tarkus>
Date: 2025-09-03T22:40:33Z
From: Ivan Krylov
Subject: [R-pkg-devel] Cannot implement test configuration
In-Reply-To: <e89c6d7030e84af1a42e9045950d9a1e@krebsregister.nrw.de>

? Wed, 3 Sep 2025 05:50:50 +0000
"H?sing, Johannes" <Johannes.Huesing at 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