QBRC / ProbeMapper-R

The R package client for ProbeMapper
Other
1 stars 2 forks source link

Address onLoad.R Issues (Possibly Remove It) #5

Open jonyoder opened 10 years ago

jonyoder commented 10 years ago

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)