Description Usage Format Value Fields Methods See Also Examples
Return an R object that will return Medusa records or Medusa records. This class provides a coherent wrapper object-relational mapping for Medusa's RESTful web service.
1 |
R6Class
object.
An R object of R6Class
with methods that
communicate with Medusa or R objects that correspond to Medusa records.
name
Stores resource name of your Medusa server
conn
Stores connection object
Return an R object that will return Medusa records or Medusa records. Visit https://github.com/misasa/MedusaRClient/ for detail.
new(NAME)
Return a new R object that corresponds to records having resource
name NAME
in Medusa. As of March 2018, "specimens", "boxes", "places", "surfaces",
"spots", "analyses", "devices", "techniques", "chemistries", "bibs", and "attachment_files" are defined in Medusa.
find(id, options = NULL)
Return a Medusa record with local ID
specified.
find_by_ids(ids, options = NULL)
Return Medusa records with local ID
specified.
find_by_global_id(id, options = NULL)
Return a Medusa record with glocal ID
specified.
find_all(options = NULL)
Return all Medusa records having the resource name.
1 2 3 4 5 6 7 8 9 10 11 12 | Specimen <- Resource$new("specimens")
Specimen$find_all()
Box <- Resource$new("boxes")
Place <- Resource$new("places")
surface <- Resource$new("surfaces")
Spot <- Resource$new("spots")
Analysis <- Resource$new("analyses")
Device <- Resource$new("devices")
Technique <- Resource$new("techniques")
Chemistry <- Resource$new("chemistries")
Bib <- Resource$new("bibs")
AttachmentFile <- Resource$new("attachment_files")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.