if (FALSE) {
o <- opal.login('administrator','password', url='https://opal-demo.obiba.org')
# all sessions metrics
dsadmin.activity(o)
# user and profile specific session metrics
dsadmin.activity(o, user = 'dsuser', profile = 'default')
# user sessions in a time range
dsadmin.activity(o, user = "dsuser", from = "2022-07-01", to = "2023-01-01")
opal.logout(o)
}
Run the code above in your browser using DataLab