Skip to content

Commit

Permalink
Small update to tests/tinytest.R
Browse files Browse the repository at this point in the history
  • Loading branch information
eddelbuettel committed Nov 2, 2024
1 parent 224558e commit 2273e8c
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 12 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2024-11-02 Dirk Eddelbuettel <edd@debian.org>

* tests/tinytest.R: Minor code edit, removal of two no longer
required setters for tinytest

2024-11-01 Dirk Eddelbuettel <edd@debian.org>

* DESCRIPTION (Version, Date): Roll micro version to 1.0.13.5
Expand Down
21 changes: 18 additions & 3 deletions inst/NEWS.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,35 @@
\item Changes in Rcpp Deployment:
\itemize{
\item One unit tests for arm64 macOS has been adjusted; a macOS
continuous integration runner was added
continuous integration runner was added (Dirk in \ghpr{1324})
\item Authors@R is now used in DESCRIPTION as mandated by CRAN, the
\code{Rcpp.package.skeleton()} function also creates it
\code{Rcpp.package.skeleton()} function also creates it (Dirk in
\ghpr{1325} and \ghpr{1327})
}
\item Changes in Rcpp Documentation:
\itemize{
\item The Rcpp Modules vignette was extended slightly following
\ghit{1322}
\ghit{1322} (Dirk)
\item Pdf vignettes have been regenerated under Ghostscript 10.03.1 to
avoid a false positive by a Windows virus scanner (Iñaki in \ghpr{1331})
}
}
}

\section{Changes in Rcpp 'hot-fix' release version 1.0.13-1 (2024-11-01)}{
\itemize{
\item Changes in Rcpp API:
\itemize{
\item Use read-only \code{VECTOR_PTR} and \code{STRING_PTR} only with
with R 4.5.0 or later (Kevin in \ghpr{1342} fixing \ghit{1341})
}
\item Changes in Rcpp Deployment:
\itemize{
\item Authors@R is now used in DESCRIPTION as mandated by CRAN
}
}
}

\section{Changes in Rcpp release version 1.0.13 (2024-07-11)}{
\itemize{
\item Changes in Rcpp API:
Expand Down
12 changes: 3 additions & 9 deletions tests/tinytest.R
Original file line number Diff line number Diff line change
@@ -1,21 +1,15 @@

if (requireNamespace("tinytest", quietly=TRUE)) {

## Set a seed to make the test deterministic
set.seed(42)

## R makes us do this (but tinytest now sets it too)
Sys.setenv("R_TESTS"="")

## Force tests to be executed if in dev release which we define as
## having a sub-release, eg 0.9.15.5 is one whereas 0.9.16 is not
if (length(strsplit(packageDescription("Rcpp")$Version, "\\.")[[1]]) > 3) { # dev rel, and
if (length(strsplit(format(packageVersion("Rcpp")), "\\.")[[1]]) > 3) { # dev rel, and
if (Sys.getenv("RunAllRcppTests") != "no") { # if env.var not yet set
message("Setting \"RunAllRcppTests\"=\"yes\" for development release\n")
message("Setting \"RunAllRcppTests\"=\"yes\" for development release")
Sys.setenv("RunAllRcppTests"="yes")
}
if (Sys.getenv("RunVerboseRcppTests") != "no") { # if env.var not yet set
message("Setting \"RunVerboseRcppTests\"=\"yes\" for development release\n")
message("Setting \"RunVerboseRcppTests\"=\"yes\" for development release")
Sys.setenv("RunVerboseRcppTests"="yes")
}
}
Expand Down

0 comments on commit 2273e8c

Please sign in to comment.