Errors when adding "matrix" format R file using resource

Hi all,

I uploaded a “rData” data into opal and then add this as the resource, see below

However, the error occupied during the data format transformation

> builder <- DSI::newDSLoginBuilder()
> builder$append(server="s2", url = "http://192.168.56.101:8080/", user = "administrator", password = "datashield_test&", driver = "OpalDriver")
> 
> logindata <- builder$build()
> datasources <- DSI::datashield.login(logins = logindata)
> datashield.symbols(datasources)
> 
> datashield.assign.resource(datasources,symbol="res",resource = "omics.opal2")
> datashield.assign.expr(conns = datasources,  symbol = "rse", expr = quote(as.resource.object(res)))
> 
> datashield.errors()
> $s2
> [1] "Command 'as.resource.object(res)' failed on 's2': Error while evaluating 'is.null(base::assign('rse', value={resourcer::as.resource.object(res)}))' -> Error in get(private$.symbol, envir = private$.env) : \n  invalid first argument\n"

Does anyone know how to fix it?

Regards,

Hank

Hi,

Looks like you have not provided some credentials. In the case of Opal, a personal access token is mandatory.

Yannick

Thanks, the problem solved.

Regards, Hank