diff --git a/main/404.html b/main/404.html index 66edd7cee..d3ae07f23 100644 --- a/main/404.html +++ b/main/404.html @@ -25,7 +25,7 @@ teal.slice - 0.4.0.9016 + 0.4.0.9017
teal_slices
is.teal_slices()
as.teal_slices()
as.list(<teal_slices>)
`[`(<teal_slices>)
c(<teal_slices>)
format(<teal_slices>)
print(<teal_slices>)
list_to_teal_slices()
slices_store()
slices_restore()
R/teal_slice-store.R
slices_restore.Rd
This function takes a file path to a JSON file containing a teal_slices object -and restores it to its original form. The restored teal_slices object can be used -to access filter states and their corresponding attributes.
JSON
slices_restore(file)
Path to file where teal_slices is stored. Must have a .json extension and read access.
.json
A teal_slices object restored from the file.
if (interactive()) { - # Restore a teal_slices object from a file - tss_restored <- slices_restore("path/to/file.json") -} -
slices_store.Rd
This function takes a teal_slices object and saves it to a file in JSON format. -The teal_slices object contains information about filter states and can be used to -create, modify, and delete filter states. The saved file can be later loaded using -the slices_restore function.
slices_restore
slices_store(tss, file)
(teal_slices) object to be stored.
(character(1)) The file path where teal_slices object will be saved. -The file extension should be ".json".
character(1)
".json"
NULL, invisibly.
NULL
Date classes is stored in "ISO8601" format (YYYY-MM-DD). POSIX*t classes are converted to a -character with the usage of format.POSIX*t(usetz = TRUE, tz = "UTC") (YYYY-MM-DD {N}{N}:{N}{N}:{N}{N} UTC, where -{N} = [0-9] is a number and UTC is Coordinated Universal Time timezone short-code). -This format is assumed during slices_restore. All teal_slices containing teal_slices that have selected or -choices fields of POSIX*t class are always converted to UTC timezone during print and format as well.
Date
"ISO8601"
YYYY-MM-DD
POSIX*t
format.POSIX*t(usetz = TRUE, tz = "UTC")
YYYY-MM-DD {N}{N}:{N}{N}:{N}{N} UTC
{N} = [0-9]
UTC
Coordinated Universal Time
teal_slice
selected
choices
print
format
# Create a teal_slices object -tss <- teal_slices( - teal_slice(dataname = "data", varname = "var"), - teal_slice(dataname = "data", expr = "x > 0", id = "positive_x", title = "Positive x") -) - -if (interactive()) { - # Store the teal_slices object to a file - slices_store(tss, "path/to/file.json") -} - -
When teal_slice is printed and contains a POSIX*t class in selected or choices fields, then those -fields are converted to UTC timezone, for enhanced and unified storage and restoring with slices_store() and -slices_restore().
teal::slices_store()
teal::slices_restore()
SumarizedExperiment
MultiAssayExperiment
When teal_slices are printed and any of teal_slice elements contain a POSIX*t class in selected or choices fields, then those fields are converted to UTC timezone, for enhanced and unified storage and restoring -with slices_store() and slices_restore().