Skip to content

Commit

Permalink
Update NEWS, untabify one section on installDeps2.r
Browse files Browse the repository at this point in the history
  • Loading branch information
eddelbuettel committed Mar 14, 2024
1 parent 5b821a9 commit 4866a08
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 4 deletions.
26 changes: 26 additions & 0 deletions inst/NEWS.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions inst/examples/installDeps2.r
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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

0 comments on commit 4866a08

Please sign in to comment.