redClose | R Documentation |
redClose
closes the connection to the REDUCE session thereby
ending the session. If requested the log file is copied from the
temporary location to one specified by the log
argument.
redClose(id, log)
id |
the session identifier returned by
|
log |
the path to the location in which to save the session's log file. Optional. |
The session log returned by redClose
includes the submit block
markers set by redExec
.
In addition to closing the connection, redClose removes the session's entry from the session registry.
redClose
returns TRUE if the session is closed, FALSE if it does
not exist.
martin gregory
redStart
for creating a REDUCE session and
showSessions
to display the session registry.
## Open a CSL session:
s1 <- redStart()
## can only run code if session was successfully started
if (is.numeric(s1)) {
## show session details:
print(showSessions())
## close session:
redClose(s1)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.