Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request: Add a class or some other defining feature to "session" objects #720

Closed
daattali opened this issue Feb 2, 2015 · 2 comments · Fixed by #746
Closed

Request: Add a class or some other defining feature to "session" objects #720

daattali opened this issue Feb 2, 2015 · 2 comments · Fixed by #746

Comments

@daattali
Copy link
Contributor

daattali commented Feb 2, 2015

Right now, a session is simply an environment and there isn't a proper way to test if is indeed a session of or.
Winston mentioned this is how shiny currently does it in a hacky way

Original discussion: https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/shiny-discuss/sFHHBG9SOeg/XmTxjzJCMqAJ

@wch
Copy link
Collaborator

wch commented Feb 27, 2015

We've fixed this. You can now test the class like this:

  if (!inherits(session, "ShinySession"))
    stop("'session' is not a ShinySession object.")

@daattali
Copy link
Contributor Author

daattali commented Mar 4, 2015

Perfect, this is exactly what I wanted, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants