-
Notifications
You must be signed in to change notification settings - Fork 22
Fix deprecated arma::is_finite calls to resolve CRAN warnings #60
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
Closed
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Contributor
Co-authored-by: gvegayon <893619+gvegayon@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix issues associated with Rcpp
Fix deprecated arma::is_finite calls to resolve CRAN warnings
Sep 29, 2025
aoliveram
added a commit
that referenced
this pull request
Nov 12, 2025
- Update RSPM URLs from focal (20.04) to noble (24.04) - Explicitly install libssl-dev and libcurl4-openssl-dev - Update system_requirements() to target Ubuntu 24.04 - Fixes ubuntu-latest (release) check failure with libssl.so.3.1 Resolves #60
aoliveram
added a commit
that referenced
this pull request
Nov 12, 2025
- Install libglpk-dev (required by igraph) - Install libgmp3-dev and libxml2-dev (additional dependencies) - Update local check script to include knitr - Fixes igraph.so loading error in GitHub Actions Related to #60
Member
|
Close as #62 fixes it. |
gvegayon
added a commit
that referenced
this pull request
Dec 4, 2025
* Initial plan * Replace deprecated arma::is_finite with std::isfinite Co-authored-by: gvegayon <893619+gvegayon@users.noreply.github.com> * Fix GitHub Actions Ubuntu runner libssl issue - Update RSPM URLs from focal (20.04) to noble (24.04) - Explicitly install libssl-dev and libcurl4-openssl-dev - Update system_requirements() to target Ubuntu 24.04 - Fixes ubuntu-latest (release) check failure with libssl.so.3.1 Resolves #60 * Add missing system dependencies for igraph - Install libglpk-dev (required by igraph) - Install libgmp3-dev and libxml2-dev (additional dependencies) - Update local check script to include knitr - Fixes igraph.so loading error in GitHub Actions Related to #60 * Switch GitHub Actions to modern r-lib actions (#63) * Initial plan * Switch to modern r-lib actions and add scripts to .Rbuildignore Co-authored-by: gvegayon <893619+gvegayon@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: gvegayon <893619+gvegayon@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: gvegayon <893619+gvegayon@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
You can’t perform that action at this time.
This PR fixes CRAN package check warnings caused by deprecated
arma::is_finite()function calls in the C++ code. The warnings were appearing across multiple R platforms and preventing successful CRAN submission.Issue
CRAN checks were failing with deprecation warnings:
Changes
#include <cmath>header tosrc/infection.cppto supportstd::isfinite()arma::is_finite(times(i))withstd::isfinite(times(i))at two locations:infection_cpp()functionsusceptibility_cpp()functionTesting
sourceCpp()std::isfinite()has identical behavior toarma::is_finite()for finite/NaN/infinite valuesThis minimal change addresses the exact deprecation warnings specified by CRAN and should allow the package to pass all checks for resubmission.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
cloud.r-project.org/usr/lib/R/bin/exec/R -e .libPaths('~/R/library');~+~install.packages(c('Rcpp',~+~'RcppArmadillo'),~+~repos='REDACTED')(dns block)esm.ubuntu.com/usr/lib/apt/methods/https(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
This section details on the original issue you should resolve
<issue_title>Fix issues associated with Rcpp</issue_title>
<issue_description>I recently got this email from CRAN about the R package. We need to fix the issues associated with the changes in the Rcpp package to resubmit the package to CRAN.
More details
Details