[R-pkg-devel] Cannot implement test configuration

Tomas Kalibera tom@@@k@||ber@ @end|ng |rom gm@||@com
Tue Sep 2 12:44:38 CEST 2025


On 9/2/25 08:23, Hüsing, Johannes via R-package-devel wrote:
> I am trying to install a test configuration for an existing package under Windows 10. Here’s my in- and the system’s output.
>
>> usethis::use_testthat(edition = 3, parallel = TRUE)
> ✔ Setting active project to "//some_servername/UserHome$/jhuesing/R/some_packagename".
> ✔ Adding "true" to Config/testthat/parallel.
> Error: [EPERM] Failed to stat '//some_servername/UserHome$': operation not permitted
>
> //some_servername/UserHome$/jhuesing points to my personal directory, which is mapped to a drive specification consisting of a letter and a colon. While I rightfully don’t have access as jhuesing to //some_servername/UserHome$, I should have access to //some_servername/UserHome$/jhuesing, and if R would address the directory via letter + colon, the system probably would permit the action.

I would recommend to stick to drive letter based paths. UNC paths are 
not fully supported even in base R. Some R functions support them, or 
try to support them, but  it is very unlikely that they would generally 
work and they are certainly not tested. Sometimes they don't work with 
external tools, including tools used commonly with R or to build R/packages.

So I would only use UNC paths if I were going to debug/test specific 
issues with UNC paths. For anything else, I would defensively use drive 
letters.

Best
Tomas

>
> Is there a way to specify the directory path in which testthat shall be added, allowing me to write the path in a way the system would accept?
>
>
>
> Dr. Johannes Hüsing
> Epidemiologie
>
> Landeskrebsregister NRW gGmbH
> Gesundheitscampus 10
> 44801 Bochum
>
>
>
> T 0234 54509-216
> F 0234 54509-499
> Johannes.Huesing using krebsregister.nrw.de<mailto:Johannes.Huesing using krebsregister.nrw.de>
> www.landeskrebsregister.nrw<http://www.landeskrebsregister.nrw>
>
> Das Landeskrebsregister NRW online
> FACEBOOK: https://www.facebook.com/LKRNordrheinWestfalen/
> INSTAGRAM: https://www.instagram.com/landeskrebsregister_nrw
> LINKEDIN: https://www.linkedin.com/company/87452209/admin/feed/posts/
>
> Newsletter LKR NRW - jetzt anmelden unter
>   https://www.landeskrebsregister.nrw/aktuelles/newsletter
>
> 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/
>
> Geschäftsführer
> 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.
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-package-devel using r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel



More information about the R-package-devel mailing list