Unless I'm missing something, I don't think that the .onLoad method will work. It doesn't set a "getter" or a "base", both of which are required for RODProt to correctly grab JSON data from ProbeMapper.
It may be better to simply require the consumer to manually set up two options before using ProbeMapper-R, as it's important that the consumer knows how to specify the correct server, anyway:
Unless I'm missing something, I don't think that the .onLoad method will work. It doesn't set a "getter" or a "base", both of which are required for RODProt to correctly grab JSON data from ProbeMapper.
It may be better to simply require the consumer to manually set up two options before using ProbeMapper-R, as it's important that the consumer knows how to specify the correct server, anyway:
getter <- HMACGetter$new(id="", key="userKey")
pmDataPackage <- read_data_package(
"http://qbridev.swmed.edu:8080/probemapper/datapackage.json",
base="http://qbridev.swmed.edu:8080/probemapper",
getter=getter)
options(pmDP = pmDataPackage)
options(pmGetter = getter)