get_state | R Documentation |
Generate a list of info for a directory path to use to trigger an update if necessary.
get_state(path, save_path = NULL, path1_modTime_diff = NULL)
path |
path to the directory you want to collect info for (using local, i.e. Google Drive Virtual, path); can be a vector (e.g. c(path1, path2)) |
save_path |
if you want to save the output, write a local path; must be a full path from root to filename, including extension .RDS; default=NULL |
path1_modTime_diff |
numeric; time in minutes that we expect the modification time for path1 to be from the current time. Default=NULL stores file info as-is. Put 3 if for example you ran update_teach_it() right before this and you're worried about the gdrive mod time being inaccurate if drive-based activities aren't synced to the local computer. If you put a number here, it engages catch_err(try_harder=T), so it will repeatedly try to get file info until the mod time falls within the 3 minutes or whatever you put for path1_modTime_diff. |
a tibble of recursive filenames, type, size, and modification_time for the path
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.