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
part of NESTpharmaverse
- - - - - -
-
-
- -
-

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.

-
- -
-

Usage

-
slices_restore(file)
-
- -
-

Arguments

-
file
-

Path to file where teal_slices is stored. Must have a .json extension and read access.

- -
-
-

Value

- - -

A teal_slices object restored from the file.

-
- -
-

Examples

-
if (interactive()) {
-  # Restore a teal_slices object from a file
-  tss_restored <- slices_restore("path/to/file.json")
-}
-
-
-
- - -
- - - - - - - diff --git a/main/reference/slices_store.html b/main/reference/slices_store.html deleted file mode 100644 index 2a6440f01..000000000 --- a/main/reference/slices_store.html +++ /dev/null @@ -1,148 +0,0 @@ - -Store teal_slices object to a file — slices_store • teal.slice - Skip to contents - - -
-
-
- -
-

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.

-
- -
-

Usage

-
slices_store(tss, file)
-
- -
-

Arguments

-
tss
-

(teal_slices) object to be stored.

- - -
file
-

(character(1)) The file path where teal_slices object will be saved. -The file extension should be ".json".

- -
-
-

Value

- - -

NULL, invisibly.

-
-
-

Details

-

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.

-
- -
-

Examples

-
# 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")
-}
-
-
-
-
- - -
- - - - - - - diff --git a/main/reference/teal.slice-package.html b/main/reference/teal.slice-package.html index 38b2e1515..47a976378 100644 --- a/main/reference/teal.slice-package.html +++ b/main/reference/teal.slice-package.html @@ -10,7 +10,7 @@ teal.slice - 0.4.0.9016 + 0.4.0.9017
part of NESTpharmaverse