View source: R/session_validate.R
session_validate | R Documentation |
A session is considered valid if it is NULL or a true, non-expired SB session
session_validate(session = current_session())
session |
sbtools session object (from |
This validates the underyling RCurl session. The session object becomes invalid if the R session has been saved to disk or persisted through an R restart. This verifies that the session object is either valid, or is a NULL object, which means no session state is being persisted. Note, this does not verify the credentials are valid or that you have permission to access the SB item, so it does not guarantee a successful request.
TRUE/FALSE
indicating if session is valid and can be used.
Returns TRUE if session is NULL as well.
## Not run:
session = authenticate_sb('user@usgs.gov')
#return true as underlying RCurl session is valid
session_validate(session)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.