yields an error:
Error: Client error: (400) Bad Request; IllegalArgument: R option format is invalid
Can you explain this error?
When writing this code, I encountered some other behaviour which I would consider a bug:
Without the āgithubusernameā argument, the ārefā is simply ignored. I figured it out how to do it after looking at the code of dsadmin.install_packages.
This contradicts the documentation, which simply states, āIf NULL (default), try to install from DataSHIELD package repository.ā
Iāve now found out that the following request is done behind the scenes by dsadmin.install_packages. It yields am error, but does whatās intended:
opal rest --opal https://localhost:8443 --user administrator --password password -m POST '/datashield/packages?name=datashield%2FdsBase&ref=6.0.0'
(22, 'The requested URL returned error: 400 Bad Request')
You should have a look at the error details in the opal log file (can be downloaded from Administration > Java Virtual Machine > Logs) or the R server log file (can be downloaded from Administration > R > R server).
Apparently the error message āR option format is invalidā is coming from Opal that fails at parsing the DataSHIELD configuration from a R package. Are you developing one DataSHIELD package? if yes could you share the DataSHIELD configuration that is declared?
Will take the opportunity of this to make Opal more robust for that kind of errors.
Thanks for sharing this. The error is in the Options definition: what is expected are key-value pairs, separated by commas. See how it is done in the dsBase package:
What you were trying to do is to install a DataSHIELD package. Once done Opal will scan the DataSHIELD R packages on the R server side to update the DataSHIELD configuration (discovery of the allowed functions and of the R options). Most probably dsBoltzmannMachines has always failed but the error could not be seen in the GUI.
The installation worked and also the methods are available and visible in the GUI. So I would have never guessed that this could be problematic, thanks.
You probably did not installed it through Opal then or something was broken recently in the JuliaConnectoR package. This is what I get in the R server:
* installing *source* package ādsBoltzmannMachinesā ...
** using staged installation
** R
** byte-compile and prepare package for lazy loading
Error: object ājuliaUsingā is not exported by 'namespace:JuliaConnectoR'
Execution halted
ERROR: lazy loading failed for package ādsBoltzmannMachinesā
* removing ā/srv/R/library/dsBoltzmannMachinesā
Error : Failed to install 'dsBoltzmannMachines' from GitHub
Sorry, I did not know that you wanted to try it out. The instructions for installing are more complicated and listed in the README of dsBoltzmannMachinesClient.
The dsBoltzmannMachines package has not been updated to work with the new version of the JuliaConnectoR that is on CRAN now.
I have to say that Iām not entirely sure whether I used dsadmin.install_package or dsadmin.set_package_methods to register the package in Opal finally. I should test and document that!