tests/testthat/test-register.R

# test_that("aur_register works", {
#   # original_key <- Sys.getenv("AURIN_API_USERPWD")
#   aur_register(
#     username = "username",
#     password = "password",
#     add_to_renviron = FALSE,
#     overwrite = FALSE
#   )
#   expect_equal(Sys.getenv("AURIN_API_USERPWD"), "username:password")

#   # if (original_key != "") {
#   #   Sys.setenv(AURIN_API_USERPWD = original_key)
#   # }
# })

Try the aurin package in your browser

Any scripts or data that you put into this service are public.

aurin documentation built on Feb. 1, 2022, 1:06 a.m.