Thanks, Ivan. Here is a transcript of the session. Note that functions from the 
usethis package are invoked from devtools::test(), experts of which I figured I 
might find most likely here.

Best wishes

Johannes

> devtools::test()
ℹ No testing infrastructure found.
Create it?

1: I forget
2: Of course
3: Not yet

Selection: 2
✔ Setting active project to "//some-server/UserHome$/jhuesing/project_path
Error: [EPERM] Failed to stat '//some-server/UserHome$': operation not permitted
✔ Setting active project to "<no active project>".
> traceback()
8: (function (..., call. = TRUE, domain = NULL)
   {
       if (...length() == 1L && inherits(..1, "condition")) {
           cond <- ..1
           if (nargs() > 1L)
               warning("additional arguments ignored in stop()")
           message <- conditionMessage(cond)
           call <- conditionCall(cond)
           .Internal(.signalCondition(cond, message, call))
           .Internal(.dfltStop(message, call))
       }
       else .Internal(stop(call., .makeMessage(..., domain = domain)))
   })(structure(list(message = "[EPERM] Failed to stat 
'//some-server/UserHome$': operation not permitted"), class = c("EPERM",
   "fs_error", "error", "condition"), location = "utils.cc:16"))
7: dir_create(path, recurse = TRUE)
6: create_directory(proj_path(path))
5: use_directory(path("tests", "testthat"))
4: use_testthat_impl(edition, parallel = parallel)
3: usethis::use_testthat()
2: usethis_use_testthat(pkg)
1: devtools::test()
> use_directory
Error: object 'use_directory' not found
> usethis::use_directory
function (path, ignore = FALSE)
{
    create_directory(proj_path(path))
    if (ignore) {
        use_build_ignore(path)
    }
    invisible(TRUE)
}
<bytecode: 0x0000018a2c1590d8>
<environment: namespace:usethis>
> create_directory
Error: object 'create_directory' not found
> usethis::create_directory
Error: 'create_directory' is not an exported object from 'namespace:usethis'
> dir_create
Error: object 'dir_create' not found
> usethis::dir_create
Error: 'dir_create' is not an exported object from 'namespace:usethis'



Dr. Johannes Hüsing
Epidemiologie


Landeskrebsregister NRW gGmbH
Gesundheitscampus 10
44801 Bochum
T 0234 54509-216
F 0234 54509-499
johannes.hues...@krebsregister.nrw.de
www.landeskrebsregister.nrw.de

Newsletter LKR NRW jetzt anmelden unter Newsletter 
<www.landeskrebsregister.nrw/aktuelles/newsletter>
Geschäftsführer

5. Landesqualitätskonferenz
Mittwoch 08. Oktober 2025 in Münster
20 Jahre Krebsregistrierung für Nordrhein-Westfalen
Eine Erfolgsgeschichte für die onkologische Forschung und Versorgung
Anmeldung: https://www.landeskrebsregister.nrw/5-landesqualitaetskonferenz-nrw/

Dr. Andres Schützendübel
Vorsitzender der Gesellschafterversammlung
Staatssekretär Matthias Heidmeier
Sitz der Gesellschaft
Bochum
Registergericht
Amtsgericht Bochum
HRB 17715

HINWEIS: Diese Nachricht ist nur für den Adressaten bestimmt. Es ist nicht 
erlaubt, diese Nachricht zu kopieren oder Dritten zugänglich zu machen. Sollten 
Sie irrtümlich diese Nachricht erhalten haben, bitte ich um Ihre Mitteilung per 
E-Mail oder unter der oben angegebenen Telefonnummer.


-----Ursprüngliche Nachricht-----
Von: Ivan Krylov <ikry...@disroot.org>
Gesendet: Dienstag, 2. September 2025 23:44
An: r-package-devel@r-project.org
Cc: Hüsing, Johannes <johannes.hues...@krebsregister.nrw.de>
Betreff: Re: [R-pkg-devel] Cannot implement test configuration

On Tue, 2 Sep 2025 06:23:24 +0000
"Hüsing, Johannes via R-package-devel" <r-package-devel@r-project.org>
wrote:

> Error: [EPERM] Failed to stat '//some_servername/UserHome$':
> operation not permitted

What's the traceback() output immediately after this error happens? If you post 
it, someone may be able to point out the offending code and perhaps find a way 
to convince it to use the drive letter instead of the UNC path.

Since the error is encountered by code in 'usethis' (or somewhere downstream), 
likely not in base R, you may also get a more direct answer by following links 
at <https://usethis.r-lib.org/SUPPORT.html>.

--
Best regards,
Ivan

______________________________________________
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel

Reply via email to