Description Usage Arguments Details Value Examples
The function works as system.file
,
but takes care when the package is a local folder.
1 |
... |
arguments to be passed to |
The use case is when some data file or direcotry is needed to be loaded,
and it is placed in inst/
directory of the package.
Path returned by system.file
.
1 2 3 4 | mibddir <- package.file("extdata", "solarOutput", "solarMibds", package = "solarius")
mibddir
list.files(mibddir)
|
[1] "/usr/local/lib/R/site-library/solarius/extdata/solarOutput/solarMibds"
[1] "mibd.2.0.gz" "mibd.2.1.gz" "mibd.2.2.gz" "mibd.2.3.gz" "mibd.2.4.gz"
[6] "mibd.2.5.gz" "mibd.5.0.gz" "mibd.5.1.gz" "mibd.5.2.gz" "mibd.5.3.gz"
[11] "mibd.5.4.gz" "mibd.5.5.gz"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.