From 4866a08b4b5bc258b5aca994000eb53c9a03dc4d Mon Sep 17 00:00:00 2001 From: Dirk Eddelbuettel Date: Thu, 14 Mar 2024 08:18:03 -0500 Subject: [PATCH] Update NEWS, untabify one section on installDeps2.r --- inst/NEWS.Rd | 26 ++++++++++++++++++++++++++ inst/examples/installDeps2.r | 8 ++++---- 2 files changed, 30 insertions(+), 4 deletions(-) diff --git a/inst/NEWS.Rd b/inst/NEWS.Rd index c7623ca..8add933 100644 --- a/inst/NEWS.Rd +++ b/inst/NEWS.Rd @@ -3,6 +3,32 @@ \newcommand{\ghpr}{\href{https://github.com/eddelbuettel/littler/pull/#1}{##1}} \newcommand{\ghit}{\href{https://github.com/eddelbuettel/littler/issues/#1}{##1}} +\section{Changes in littler version 0.3.20 (unrelease)}{ + \itemize{ + \item Changes in examples scripts + \itemize{ + \item New (dependency-free) helper \code{installDeps2.r} to install dependencies + \item Scripts \code{rcc.r}, \code{tt.r}, \code{tttf.r}, \code{tttlr.r} + use \code{env} argument \code{-S} to set \code{-t} to \code{r} + \item \code{tt.r} can now fill in \code{inst/tinytest} if it is present + \item New script \code{ciw.r} wrapping new package \pkg{ciw} + \item \code{tttf.t} can now use \pkg{devtools} and its \code{loadall} + \item New script \code{doi2bib.r} to call the DOI converter REST + service (following a skeet by Richard McElreath) + } + \item Changes in package + \itemize{ + \item The CI setup use checkout@v4 and the r-ci-setup action + \item The Suggests: is a little tighter as we do not list all packages + optionally used in the the examples (as R does not check for it either) + \item The package load messag can account for the rare build of R under + different architecture (Berwin Turlach in \ghpr{117} closing \ghit{116}) + \item In non-vanilla mode, the temporary directory initialization in + re-run allowing for a non-standard temp dir via config settings + } + } +} + \section{Changes in littler version 0.3.19 (2023-12-17)}{ \itemize{ \item Changes in examples scripts diff --git a/inst/examples/installDeps2.r b/inst/examples/installDeps2.r index 339bd3b..a08d4a1 100644 --- a/inst/examples/installDeps2.r +++ b/inst/examples/installDeps2.r @@ -19,7 +19,7 @@ doc <- "Usage: installDeps2.r [-h] [-x] [-s] [DESC] -x --usage show help and short example usage " -opt <- docopt(doc) # docopt parsing +opt <- docopt(doc) # docopt parsing if (opt$usage) { cat(doc, "\n\n") @@ -50,8 +50,8 @@ if (length(opt$DESC)==0 && file.exists("DESCRIPTION") && file.exists("NAMESPACE" flds <- c("Imports", "Depends", "LinkingTo") if (opt$suggests) flds <- c(flds, "Suggests") -res <- read.dcf(descfile)[1,] # we read only one file so first row only -res <- res[intersect(names(res), flds)] # intersect available and desired fields +res <- read.dcf(descfile)[1,] # we read only one file so first row only +res <- res[intersect(names(res), flds)] # intersect available and desired fields pkgs <- tools:::.split_dependencies(res) # parse and split, then diff off base packages instpkgs <- setdiff(names(pkgs), tools:::.get_standard_package_names()$base) -install.packages(instpkgs) # and install remainder +install.packages(instpkgs) # and install remainder