Function not designed for direct use. Instead use the RStudio code library
entry on the RStudio 'Addins' menu. This will open the shiny app. Select the file, and
click "preview" to view and import()
to bring into the "staging" area of
your project. See vignette at https://tsahota.github.io/NMproject/ for a
video showing use of the app. NONMEM control files will intentionally not be
imported straight in the "Models" directory and instead go into
"staging/Models". This staging location can be referred to when creating
nm
objects with new_nm(..., based_on = "staging/Models/[filename]")
.
code_library(
extn = NULL,
fields = "Description",
viewer = TRUE,
silent = FALSE,
return_info = FALSE
)
If return_info = TRUE
, invisibly returns output a tibble
with
code library information. Otherwise (this may be deprecated soon), will return paths to code library
files.
Vector string of extensions to include (default = NULL
includes
all).
Character vector of fields to extract.
Logical indicating if viewer should be used to display results
(default=FALSE
).
Logical indicating if messages should be silenced
(default=FALSE
).
Logical (default = FALSE
). Return data.frame of results
(FALSE= returns file paths).
Requires getOption("code_library_path")
to be set.
ls_code_library()
, stage()
, import()
code_library(viewer = FALSE, return_info = TRUE)
Run the code above in your browser using DataLab