Skip to content

Commit

Permalink
Merge pull request #170 from shwilks/master
Browse files Browse the repository at this point in the history
Update to 1.2.9
  • Loading branch information
shwilks authored Dec 7, 2023
2 parents 53b4f99 + c9899e5 commit abe5b3b
Show file tree
Hide file tree
Showing 11 changed files with 213 additions and 199 deletions.
6 changes: 3 additions & 3 deletions CRAN-SUBMISSION
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Version: 1.2.8
Date: 2023-11-22 18:14:09 UTC
SHA: f738ce3c333d12ada310f0c6aef4c01f9ab464cd
Version: 1.2.9
Date: 2023-11-30 11:13:00 UTC
SHA: c52195bcd9da3469170ba38e65de34840b0e34d1
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: Racmacs
Type: Package
Title: Antigenic Cartography Macros
Version: 1.2.8
Date: 2023-11-22
Version: 1.2.9
Date: 2023-11-30
Authors@R:
c(person(given = "Sam",
family = "Wilks",
Expand Down
372 changes: 188 additions & 184 deletions NEWS.md

Large diffs are not rendered by default.

10 changes: 8 additions & 2 deletions cran-comments.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,11 @@

0 errors | 0 warnings | 1 note

Package was archived because the function `gdata::read.xls()` was removed, this
is now replaced in this version by using `readxl::read_excel()` function.
Resubmission to fix failing CRAN checks:

- One test is skipped if pandoc is not available on the test system
- Vignettes only evaluate code if pandoc is available
- Some changes made to try and address the warning "format string is not a
string literal (potentially insecure) [-Wformat-security]", although note
that Rcpp also currently throws this warning on
r-devel-linux-x86_64-fedora-clang and r-devel-linux-x86_64-debian-clang
2 changes: 1 addition & 1 deletion src/ac_titers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ void check_valid_titer(
) {

std::string msg = "Invalid titer '"+titer+"'";
Rf_error(msg.c_str());
Rf_error("%s", msg.c_str());

}

Expand Down
4 changes: 2 additions & 2 deletions src/utils_error.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ void ac_error(
const char* msg
){

Rf_error(msg);
Rf_error("%s", msg);

}

void ac_error(
const std::string msg
){

Rf_error(msg.c_str());
Rf_error("%s", msg.c_str());

}
2 changes: 1 addition & 1 deletion src/utils_progress.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class AcProgressBar: public ProgressBar{
REprintf("\n");
}

REprintf(msg);
REprintf("%s", msg);
REprintf("\n");

}
Expand Down
3 changes: 2 additions & 1 deletion tests/testthat/test-view_map.R
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,9 @@ test_that("Viewing a 3D map with sphere outlines", {
# Exporting the viewer
test_that("Exporting a map viewer", {

if (!rmarkdown::pandoc_available()) skip()
tmp <- tempfile(fileext = ".html")
export_viewer(map, tmp)
export_viewer(map, tmp, selfcontained = FALSE)
expect_true(file.exists(tmp))
unlink(tmp)

Expand Down
3 changes: 2 additions & 1 deletion vignettes/adding-sequences.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ vignette: >
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
comment = "#>",
eval = rmarkdown::pandoc_available()
)
```

Expand Down
3 changes: 2 additions & 1 deletion vignettes/comparing-maps.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ vignette: >
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
comment = "#>",
eval = rmarkdown::pandoc_available()
)
```

Expand Down
3 changes: 2 additions & 1 deletion vignettes/making-a-map-from-scratch.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ vignette: >
set.seed(100)
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
comment = "#>",
eval = rmarkdown::pandoc_available()
)
```

Expand Down

0 comments on commit abe5b3b

Please sign in to comment.