Skip to content
Prev 12063 / 12125 Next

[R-pkg-devel] error message when trying to knit a vignette involving data import

Am 11.02.26 um 08:39 schrieb H?sing, Johannes via R-package-devel:
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