Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small update to tests/tinytest.R #1343

Merged
merged 1 commit into from
Nov 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 <[email protected]>

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

2024-11-01 Dirk Eddelbuettel <[email protected]>

* 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