View source: R/sourcoise_meta.R
sourcoise_meta | R Documentation |
quick acces to metadata of the script, data is not fecthed.
sourcoise_meta(path, args = NULL)
path |
(character) path of the script |
args |
(named list) arguments of the script if any |
timing
: time of full script execution
date
: date of last full execution
size
: size of objects returned (in R memory)
args
: args given to sourcoise for the script
lapse
: dely before reexecution
track
: list of files tracked
qmd_file
: list of qmd calling this script
log_file
: last log file
file_size
: size of data cached on disk
data_date
: date of last data save (if no new data when executed, no data is saved)
data_file
: path to data cached (as a qs2 data file)
file
: path to the json file storing metadata (and .sourcoise dir)
a named list with cache information
dir <- tempdir()
set_sourcoise_root(dir)
fs::file_copy(
fs::path_package("sourcoise", "some_data.R"),
dir,
overwrite = TRUE)
# Force execution (root is set explicitly here, it is normally deduced from project)
data <- sourcoise("some_data.R", force_exec = TRUE)
# Then we access metadata
sourcoise_meta("some_data.R")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.