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

Remove connections list symbol from client environment at datashield.logout #13

Open
ymarcon opened this issue Oct 1, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@ymarcon
Copy link
Member

ymarcon commented Oct 1, 2021

Given that the list of DSConnection objects is discovered at runtime by the dsBaseClient functions (so that it is not specified in the functions parameters at each call), there can be some confusion when several lists of connections exists. Despite the error message recommends to disambiguate with datashield.connections_default, it would be more user friendly to remove the list of dead connections from the client environment after the logout has happened.

Example of output when confusion happens:

> ds.assign(connections, newobj="A", toAssign="c(0,1,2,3,4,5)")
  Assigned expr. (A <- c(0,1,2,3,4,5)) [=================================================] 100% / 1s
  Aggregated (exists("A")) [=============================================================] 100% / 1s
> ds.ls()
More than one list of DSConnection objects were found with no default specified: 'connections', 'conns'!
Error: Please specify a default list of DSConnection objects using datashield.connections_default()
> ls()
[1] "builder"     "connections" "conns"       "logindata"  
> datashield.connections_default("connections")
> ds.ls()
  Aggregated (lsDS(search.filter = NULL, 1L)) [==========================================] 100% / 1s
@ymarcon ymarcon added the enhancement New feature or request label Oct 1, 2021
@ymarcon ymarcon self-assigned this Oct 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

1 participant