datafile.character | R Documentation |
Identifies the datafile used by a model. Expresses it relative to current working directory.
## S3 method for class 'character'
datafile(x, ...)
x |
the model name or path to a control stream |
... |
ext can be passed to modelfile, etc. |
character
Other path:
datafile()
,
datafile.numeric()
,
modeldir()
,
modelfile()
,
modelpath()
,
modelpath.character()
,
modelpath.numeric()
,
psn_options()
,
specfile()
,
specfile.character()
,
specfile.numeric()
library(spec)
source <- system.file(package = 'nonmemica','project')
target <- tempdir()
target <- gsub('\\\\','/',target) # for windows
file.copy(source,target,recursive = TRUE)
project <- file.path(target,'project','model')
options(project = project)
library(magrittr)
1001 %>% datafile
datafile(1001) %matches% specfile(1001)
1001 %>% specfile
1001 %>% specfile %>% read.spec
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.