library(repoRter.nih)
## make the usual request
req <- make_req(criteria =
list(advanced_text_search =
list(operator = "Or",
search_field = "all",
search_text = "sarcoidosis lupus") ),
message = FALSE)
## get the data ragged
if (FALSE) {
res <- get_nih_data(req,
max_pages = 1)
## get the data flattened
res_flattened <- get_nih_data(req,
flatten_result = TRUE,
max_pages = 1)
}
Run the code above in your browser using DataLab