list_jamsessions | R Documentation |
List saved R sessions
list_jamsessions( sessions_path = jamsession_paths()$sessions, most_recent = FALSE, session_prefix = "^inProgress_", session_suffix = "[.]RData$", add_stats = FALSE, ... )
sessions_path |
character vector of one or more file paths to search
for saved R sessions. When |
most_recent |
logical whether to return only the most recent
saved entry for each session name. When |
session_prefix, session_suffix |
|
add_stats |
|
... |
additional parameters are ignored |
This function lists available saved R sessions,
usually called by grep_jamsessions()
.
When most_recent=TRUE
it returns only the most recent session
based upon the save_date
.
It is possible to supply multiple file paths using the
argument sessions_path
, in which case all sessions are returned
for all directories, then they are sorted by save_date
.
The input sessions_path
is stored as an ordered factor, such
that two sessions with the same save_date
will still be ordered
consistent with the input directories in sessions_path
.
In this case, when most_recent=TRUE
there will be one entry
returned per object
name, and the first entry will be the
most recent entry ordered by save_date
then sessions_path
.
In practice, it is recommended to use one sessions_path
location, but this option exists.
For example, jamsession(grep_sessions("my_session"))
will load the most recent session by save_date
where any
ties prefer the order in sessions_path
. Similarly,
load_jamsession("my_session")
does the same thing,
without the grep_patten search step.
list containing
data.frame
of R session information
vector
of matching R session names
Other jamsession sessions:
grep_jamsessions()
,
load_jamsession()
,
save_jamsession()
,
show_session_versions()
list_jamsessions();
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.