View source: R/helper_functions.R
rba_pages | R Documentation |
Some resources return paginated results, meaning that you have to make separate calls for each page. Using this function, you can iterate over up to 100 pages. Just supply your rbioapi function and change to page argument to "pages:start_page:end_page", for example "pages:1:5".
rba_pages(input_call, ...)
input_call |
A quoted call. supply a regular rbioapi function call, but with two differences:
See the "examples" section to learn more. |
... |
Experimental internal options. |
To prevent flooding the server, there will be a 1 second delay between calls, also the user cannot iterate on more than 100 pages. The function will also override skip_error option and will always set it to TRUE. This means that in case of server response error (e.g. requesting pages that do not exist) an error message be returned to you instead of halting function's execution.
A named list where each element corresponds to a request's page.
Other "Helper functions":
rba_connection_test()
,
rba_options()
rba_pages(input_call = quote(rba_uniprot_taxonomy(ids = 189831,
hierarchy = "siblings",
page_size = 50,
page_number = "pages:1:5")))
rba_pages(input_call = quote(rba_uniprot_taxonomy_name(name = "adenovirus",
field = "scientific",
search_type = "contain",
page_size = 200,
page_number = "pages:1:5",
verbose = FALSE)))
rba_pages(input_call = quote(rba_panther_info(what = "families",
families_page = "pages:9:11")))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.