Learn R Programming

solarius (version 0.2.3)

package.file: Alternative to system.file

Description

The function worsk as system.file, but takes care when the package is a local folder.

Usage

package.file(...)

Arguments

...
arguments to be passed to system.file

Value

  • Path returned by system.file.

Details

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.

Examples

Run this code
mibddir <- package.file("extdata", "solarOutput", "solarMibds", package = "solarius")
mibddir

list.files(mibddir)

Run the code above in your browser using DataLab