R/package.R

#
# usethis::use_roxygen_md()
# usethis::use_pipe()
# usethis::use_git()
# usethis::use_git_ignore(c(".Rhistory", ".RData",".Rproj.user"))
# usethis::use_package("readr")
# usethis::use_package("purrr")
# usethis::use_package("cli")
# usethis::use_package("crayon")
# usethis::use_package("assertthat")
# usethis::use_package("stringr")
# usethis::use_package("httr")
# usethis::use_package("jsonlite")
# usethis::use_package("openssl")
# usethis::use_package("lubridate")
# usethis::use_testthat()
# usethis::use_readme_md()
# usethis::use_news_md()
# usethis::use_test("gor_query")
# usethis::use_pkgdown()
# usethis::use_tidy_versions()
# usethis::use_version("dev")
# usethis::use_vignette("basic_query")


#'   GOR-R
#'
#' @description R library for interfacing with Genuity Science services.
#' @docType package
#' @name gorr
#' @section GOR-R functions:
#' The main functions you'll be using are:
#' * \code{\link{platform_connect}} to establish a connection to your Genuity Science APIs, and
#' * \code{\link{gor_query}} to run your queries
#' @examples
#' \dontrun{
#' library(gorr)
#' # Go to your CSA instance of choice that runs the Query API, e.g.
#' # https://your-wxnc-instance
#' # Note the internal names of the projects you have access to
#' # go to and copy your api_key from: https://your-wxnc-instance/api-key-service/token
#' # Paste it into the variable below:
#'
#' api_key <- ""
#'
#' # Make connection object
#' conn <- platform_connect(api_key, "your_project")
#'
#' # Print the connection details
#' print(conn)
#'
#' # Run a simple query
#'
#' results <- gor_query("gor #dbsnp# | top 10000", conn)
#'
#' print(results)
#' }
NULL
wuxi-nextcode/gorr documentation built on Jan. 1, 2023, 7:54 a.m.