Closed dongzhuoer closed 6 years ago
> file.path(R.home(), "doc/html/logo.jpg")
[1] "/usr/lib/R/doc/html/logo.jpg"
> file.exists('/usr/lib/R/doc/html/logo.jpg')
[1] FALSE
> file.path(R.home('doc'), "html/logo.jpg")
[1] "/usr/share/R/doc/html/logo.jpg"
> file.exists('/usr/share/R/doc/html/logo.jpg')
[1] TRUE
file.path(R.home(), "doc/html/logo.jpg")
is not portable