Creates the resource file and its test file from templates. Its URI is
<package>://<name>.
Usage
add_resource(name, mordew_wd = get_mordew_wd())Arguments
- name
Name of the resource.
- mordew_wd
Path to the package,
get_mordew_wd()by default.
Examples
path <- file.path(
tempfile(),
"runlog"
)
create_mordew(
path
)
add_resource(
"surfaces",
mordew_wd = path
)
list.files(
file.path(
path,
"R"
)
)
#> [1] "resource_surfaces.R" "run.R"