From 1dff54c001953b4e460519eadf178d4cca37ec1f Mon Sep 17 00:00:00 2001 From: pat-s Date: Mon, 26 Aug 2024 21:47:51 +0200 Subject: [PATCH] fix namespace exports --- .../{update_packages.yaml => process_cran_updates.yaml} | 2 +- NAMESPACE | 2 +- R/{update-packages.R => process_cran_updates.R} | 4 ++-- man/{update_packages.Rd => process_cran_updates.Rd} | 8 ++++---- 4 files changed, 8 insertions(+), 8 deletions(-) rename .woodpecker/{update_packages.yaml => process_cran_updates.yaml} (98%) rename R/{update-packages.R => process_cran_updates.R} (96%) rename man/{update_packages.Rd => process_cran_updates.Rd} (82%) diff --git a/.woodpecker/update_packages.yaml b/.woodpecker/process_cran_updates.yaml similarity index 98% rename from .woodpecker/update_packages.yaml rename to .woodpecker/process_cran_updates.yaml index 00dffe3..22fab20 100644 --- a/.woodpecker/update_packages.yaml +++ b/.woodpecker/process_cran_updates.yaml @@ -41,7 +41,7 @@ steps: # more complicated system dependencies which pak cannot resolve - mkdir -p /mnt/cache/pkgcache /mnt/cache/R-pkgs /mnt/cache/ccache /mnt/cache/packages # set additional repos: important as otherwise some packages cannot be resolved (e.g. INLA). Also: setting our own binary repos so we can make use of them for dep installation at some point - - R -q -e 'options(crayon.enabled = TRUE, Ncpus = 4, future.globals.onReference = "error", repos = structure(c(getOption("repos"),INLA="https://inla.r-inla-download.org/R/stable"))); pkgs = tools::CRAN_package_db()[[1]][${BLOCK}]; pkgs = setdiff(pkgs, c("biplotbootGUI", "cncaGUI", "dynBiplotGUI", "ade4TkGUI", "BlockmodelingGUI", "cncaGUI", "EventDetectGUI", "irtGUI", "KappaGUI", "magickGUI", "miniGUI", "multibiplotGUI", "TextMiningGUI", "later", "RclusTool", "Rcmdr", "RcmdrMisc", "RcmdrPlugin.aRnova", "RcmdrPlugin.BiclustGUI", "RcmdrPlugin.BWS1", "RcmdrPlugin.BWS2", "RcmdrPlugin.BWS3", "RcmdrPlugin.cpd", "RcmdrPlugin.DCCV", "RcmdrPlugin.DCE", "RcmdrPlugin.depthTools", "RcmdrPlugin.DoE", "RcmdrPlugin.EACSPIR", "RcmdrPlugin.EBM", "RcmdrPlugin.EcoVirtual", "RcmdrPlugin.Export", "RcmdrPlugin.EZR", "RcmdrPlugin.FactoMineR", "RcmdrPlugin.GWRM", "RcmdrPlugin.HH", "RcmdrPlugin.KMggplot2", "RcmdrPlugin.MA", "RcmdrPlugin.MPAStats", "RcmdrPlugin.NMBU", "RcmdrPlugin.orloca", "RcmdrPlugin.PcaRobust", "RcmdrPlugin.RiskDemo", "RcmdrPlugin.RMTCJags", "RcmdrPlugin.ROC", "RcmdrPlugin.sos" , "RcmdrPlugin.survival", "RcmdrPlugin.TeachingDemos", "RcmdrPlugin.TeachStat", "RcmdrPlugin.temis", "RcmdrPlugin.UCA" , "RcmdrPlugin.WorldFlora", "sf", "StratigrapheR", "tcltk2", "TVMM")); library(rBinaries); future::plan("sequential" rscript_startup = quote(options(crayon.enabled = TRUE))); update_packages(platform = "${PLATFORM}"))' + - R -q -e 'options(crayon.enabled = TRUE, Ncpus = 4, future.globals.onReference = "error", repos = structure(c(getOption("repos"),INLA="https://inla.r-inla-download.org/R/stable"))); pkgs = tools::CRAN_package_db()[[1]][${BLOCK}]; pkgs = setdiff(pkgs, c("biplotbootGUI", "cncaGUI", "dynBiplotGUI", "ade4TkGUI", "BlockmodelingGUI", "cncaGUI", "EventDetectGUI", "irtGUI", "KappaGUI", "magickGUI", "miniGUI", "multibiplotGUI", "TextMiningGUI", "later", "RclusTool", "Rcmdr", "RcmdrMisc", "RcmdrPlugin.aRnova", "RcmdrPlugin.BiclustGUI", "RcmdrPlugin.BWS1", "RcmdrPlugin.BWS2", "RcmdrPlugin.BWS3", "RcmdrPlugin.cpd", "RcmdrPlugin.DCCV", "RcmdrPlugin.DCE", "RcmdrPlugin.depthTools", "RcmdrPlugin.DoE", "RcmdrPlugin.EACSPIR", "RcmdrPlugin.EBM", "RcmdrPlugin.EcoVirtual", "RcmdrPlugin.Export", "RcmdrPlugin.EZR", "RcmdrPlugin.FactoMineR", "RcmdrPlugin.GWRM", "RcmdrPlugin.HH", "RcmdrPlugin.KMggplot2", "RcmdrPlugin.MA", "RcmdrPlugin.MPAStats", "RcmdrPlugin.NMBU", "RcmdrPlugin.orloca", "RcmdrPlugin.PcaRobust", "RcmdrPlugin.RiskDemo", "RcmdrPlugin.RMTCJags", "RcmdrPlugin.ROC", "RcmdrPlugin.sos" , "RcmdrPlugin.survival", "RcmdrPlugin.TeachingDemos", "RcmdrPlugin.TeachStat", "RcmdrPlugin.temis", "RcmdrPlugin.UCA" , "RcmdrPlugin.WorldFlora", "sf", "StratigrapheR", "tcltk2", "TVMM")); library(rBinaries); future::plan("sequential" rscript_startup = quote(options(crayon.enabled = TRUE))); process_cran_updates(platform = "${PLATFORM}"))' backend_options: kubernetes: ### PROD diff --git a/NAMESPACE b/NAMESPACE index 8a4a2a7..4933f12 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -6,10 +6,10 @@ export(build_single_tag) export(dbcon) export(install_package_system_dependencies) export(list_metadata_tables) +export(process_cran_updates) export(query_metadata_table) export(set_bin_path) export(set_codename) -export(update_packages) export(upload_package_index) export(upload_single_binary_to_s3) import(progressr) diff --git a/R/update-packages.R b/R/process_cran_updates.R similarity index 96% rename from R/update-packages.R rename to R/process_cran_updates.R index 355fb53..b389c69 100644 --- a/R/update-packages.R +++ b/R/process_cran_updates.R @@ -1,4 +1,4 @@ -#' Process updated and new CRAN packages +#' @title Process updated and new CRAN packages #' @description #' Packages which got removed from CRAN can be deleted by setting `prune = TRUE`. #' Argument `interval` allows to specify a range which should be processed. @@ -6,7 +6,7 @@ #' @importFrom dplyr bind_rows #' @importFrom purrr walk2 #' @export -update_packages <- function( +process_cran_updates <- function( package_name, tag, platform = platform, diff --git a/man/update_packages.Rd b/man/process_cran_updates.Rd similarity index 82% rename from man/update_packages.Rd rename to man/process_cran_updates.Rd index 21764d4..41f8547 100644 --- a/man/update_packages.Rd +++ b/man/process_cran_updates.Rd @@ -1,10 +1,10 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/update-packages.R -\name{update_packages} -\alias{update_packages} +% Please edit documentation in R/process_cran_updates.R +\name{process_cran_updates} +\alias{process_cran_updates} \title{Process updated and new CRAN packages} \usage{ -update_packages( +process_cran_updates( package_name, tag, platform = platform,