knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

The ragapi package

In this introductory tutorial, we explains how to use the ragapi package, an R-implementation of the Agronomic API(AGAPI) running behind AGROFIMS.

library(ragapi)
out <- ag_get_expdetails_studyId(studyDbId = 21, 
                                  format = "data.frame",
                                  serverURL = "https://research.cip.cgiar.org/agrofims/api/dev", 
                                  version ="/0212/r")
out <- ag_get_fundagency_studyId(studyDbId = 28, 
                                  format = "data.frame",
                                  serverURL = "https://research.cip.cgiar.org/agrofims/api/dev", 
                                  version ="/0212/r")


AGROFIMS/ragapi documentation built on Nov. 23, 2020, 9:20 a.m.