showSessions | R Documentation |
For each active REDUCE session returns the full path to the REDUCE executable and the temporary log file, the connection identifier, the number of code blocks executed and the number of lines read from the log so far.
showSessions(id)
id |
The session id for which to display the details. May be omitted. If
none specified, display details for all sessions. The session id is
returned by |
A data frame with the following columns:
id |
integer, the session identifier; |
pcon |
integer, the input connection for the REDUCE session; |
cmd |
character, full path to the REDUCE executable; |
logname |
character, full path to the log file; |
blockn |
integer, number of blocks of REDUCE code submitted,
i.e. number of calls to any function which sends code to REDUCE,
currently |
lines.read |
integer, number of lines read from the log file for the session. |
martin gregory
redStart
for creating a REDUCE session and
redClose
for closing a session.
## Open a PSL session:
id1 <- redStart('psl')
## can only run code if session was successfully started
if (is.numeric(id1)) {
## show session details:
print(showSessions(id1))
## retrieve the entire transcript up to now
writeLines(readLines(showSessions(id1)[,'logname'], warn=FALSE))
## close session:
redClose(id1)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.