From ebdfe96daf4935a13c99e01e1340f086e753f236 Mon Sep 17 00:00:00 2001 From: Vincent Guyader Date: Mon, 17 Jun 2024 12:34:58 +0000 Subject: [PATCH] from sysreqs.r-hub.io to {pak} --- DESCRIPTION | 4 ++-- NAMESPACE | 2 -- man/get_sysreqs.Rd | 3 +-- tests/testthat/test-get_sysreqs.R | 3 +++ 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index ea14f2b..f8d6825 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: dockerfiler Title: Easy Dockerfile Creation from R -Version: 0.2.2.9000 +Version: 0.2.2.9001 Authors@R: c( person("Colin", "Fay", , "contact@colinfay.me", role = c("cre", "aut"), comment = c(ORCID = "0000-0001-7343-1846")), @@ -41,5 +41,5 @@ Config/fusen/version: 0.5.1 Config/testthat/edition: 3 Encoding: UTF-8 LazyData: true -RoxygenNote: 7.2.3 +RoxygenNote: 7.3.1 Roxygen: list(markdown = TRUE) diff --git a/NAMESPACE b/NAMESPACE index d3144b3..93bec8b 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -16,9 +16,7 @@ importFrom(cli,cat_bullet) importFrom(desc,desc_get) importFrom(desc,desc_get_deps) importFrom(fs,file_create) -importFrom(fs,file_delete) importFrom(fs,file_exists) -importFrom(fs,file_temp) importFrom(fs,path) importFrom(glue,glue) importFrom(jsonlite,fromJSON) diff --git a/man/get_sysreqs.Rd b/man/get_sysreqs.Rd index acded9c..d76ad08 100644 --- a/man/get_sysreqs.Rd +++ b/man/get_sysreqs.Rd @@ -18,6 +18,5 @@ A vector of system requirements. } \description{ This function retrieves information about the -system requirements using the \url{https://sysreqs.r-hub.io} -API. +system requirements using the \code{pak::pkg_sysreqs()}. } diff --git a/tests/testthat/test-get_sysreqs.R b/tests/testthat/test-get_sysreqs.R index f72b3c7..e50b6a7 100644 --- a/tests/testthat/test-get_sysreqs.R +++ b/tests/testthat/test-get_sysreqs.R @@ -1,5 +1,8 @@ test_that("get_sysreqs works", { skip_on_cran() + R_USER_CACHE_DIR<-tempfile() + dir.create(R_USER_CACHE_DIR) + Sys.setenv("R_USER_CACHE_DIR"=R_USER_CACHE_DIR) res <- get_sysreqs( c("mongolite"), quiet = TRUE