Am 11.02.26 um 08:39 schrieb Hüsing, Johannes via R-package-devel:
spieldatenpfad <- system.file("./inst/extdata/spieldaten.rda", package =
"staduicc")
system.file() finds files in an _installed_ package, which is what you
want to access in a vignette. However, './inst/' only exists in your
source package. At installation, the _contents_ of that subdirectory are
copied recursively to the installation directory, so that will have
'./extdata' at the root. I recommend installing the package and checking
out its installation directory to see for yourself:
(instdir <- find.package("staduicc"))
browseURL(instdir)
(Browsing the directory should work via 'xdg-open' on Linux; I'm not
sure about Windows, but you will know the path.)
Sebastian Meyer
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel