Thanks for your collective curiosity. Ivan: I am quite confident that the issue would be solved if the UNC version of the path would be replaced by the letter-plus-colon MS-DOS-style expression. Typing getwd() indeed returns a letter-plus-colon path.
Kevin: fs::file_exists(//some_servername/Userhome$) returns FALSE file.exists(//some_servername/Userhome$) returns FALSE fs::dir_exists(//some_servername/Userhome$) returns Error: [EPERM] Failed to stat '//some_servername/UserHome$': operation not permitted dir.exists(//some_servername/Userhome$) returns FALSE Michael: Trace calls to fs::path_real() are issued multiple times when trying to build test infrastructure: > devtools::test() trace: path_real ℹ No testing infrastructure found. Create it? 1: I forget 2: Absolutely 3: No Selection: 2 trace: dir_exists trace: path_real trace: path_real ✔ Setting active project to "//some_servername/UserHome$/jhuesing/R/Tools/ICD_O_3/ICDO3". trace: dir_exists Error: [EPERM] Failed to stat '//some_servername/UserHome$': operation not permitted ✔ Setting active project to "<no active project>". 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: Donnerstag, 4. September 2025 00:41 An: Hüsing, Johannes <johannes.hues...@krebsregister.nrw.de> Cc: r-package-devel@r-project.org Betreff: Re: [R-pkg-devel] Cannot implement test configuration В Wed, 3 Sep 2025 05:50:50 +0000 "Hüsing, Johannes" <johannes.hues...@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 ______________________________________________ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel