Learn R Programming

opalr (version 3.4.2)

oadmin.activity: Get R activity

Description

Get the recorded R session metrics.

Usage

oadmin.activity(
  opal,
  user = NULL,
  profile = NULL,
  from = NULL,
  to = NULL,
  df = TRUE
)

Arguments

opal

Opal connection object.

user

Optional user name.

profile

Optional profile name.

from

Optional start date.

to

Optional end date.

df

Return a data.frame (default is TRUE)

Examples

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

Run the code above in your browser using DataLab