Description Usage Arguments Details Value
Given the name and optionally the parameters and dependencies, will read the dataobject previously saved in a datatrack project.
1 2 3 |
name |
String; Optional. The dataobject to read, eg "clusters", "features" etc. If ommited, will prompt the user with a choice of available names |
purpose |
string; Displayed to the user when prompting |
include.meta |
bool; if true, will wrap the data to return in a list that also contains the metadata |
params |
list; Optional. If supplied, will only consider returning a dataobject with the matching params |
dependencies |
list; optional. If supplied, will only consider returning a dataobject with the matching |
false.if.missing |
bool; if true, will return false if the file is missing |
optional |
boolean; if true, an option is added to select none and return false |
use.last.accessed |
boolean; if true (default) will look for the version that was last written or read in this session |
version |
int; If the required version is known, then it can be supplied. This version will be used if it exists |
1) if name is not supplied, will ask user, 2) then if version is supplied, find the that version of the dataobject name. If it doesn't exist, will return false or stop (depending on false.if.missing) 3) looks for the last accessed version if it matches the version OR params, dependencies 4) if no matching last accessed verion is found, it will ask the user to select a version This means that for a particular set of params and dependencies, only one version of a particular dataobject name can be used within the same run 5) if the file is found, then it will set the 'last accessed' flag on the chosen dataobject and it dependencies
if include.meta, will return a list that has a 'data' key, that contains the data read in if include.meta is false, will return the data read in, eg data frame if it's a csv
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.