Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Remove now-unnecessary Makevars with Rcpp::LdFlags#647

Merged
stefvanbuuren merged 1 commit intoamices:masterfrom
brookslogan:remove-deprecated-ldflags
Jul 29, 2024
Merged

Remove now-unnecessary Makevars with Rcpp::LdFlags#647
stefvanbuuren merged 1 commit intoamices:masterfrom
brookslogan:remove-deprecated-ldflags

Conversation

@brookslogan
Copy link
Contributor

Rcpp:::LdFlags() is deprecated and produces an empty string, and hasn't been needed for long enough that there may not be loss in compatibility with current
systems
. Removing these Makevars settings is a simple way to address issues for some system x Rprofile combinations that I encountered (#646).

Benefits:

  • Brings package up to date with respect to this deprecation.
  • Closes Installation fails when Rprofile prints to stdout #646 (though a bit of an edge case).
  • (Potentially?:) If a user already is providing a PKG_LIBS setting via system Makevars / environment variables, that setting will no longer be overwritten, which is presumably desirable.

Risks and drawbacks:

  • I haven't tested this outside my Fedora system. In particular, I haven't tested on Windows. But the Rcpp documentation does not list Windows or any other OS as an exception to this deprecation.
  • If people are running more-than-decade-old Rcpp versions, this may break compilation for them.

Rcpp:::LdFlags() is deprecated and produces an empty
string (https://www.rdocumentation.org/packages/Rcpp/versions/1.0.12/topics/LdFlags-deprecated),
and hasn't been needed for long enough that there may not be loss in
compatibility with current
systems (RcppCore/Rcpp#1302 (comment)).
Removing these Makevars settings is a simple way to address issues for some
system x Rprofile combinations (amices#646).
@stefvanbuuren
Copy link
Member

I found that Makevars and Makevars.win are optional since 2017, so I assume it is safe to remove both files.

@stefvanbuuren stefvanbuuren merged commit 5f9fbc1 into amices:master Jul 29, 2024
@brookslogan brookslogan deleted the remove-deprecated-ldflags branch July 31, 2024 22:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Installation fails when Rprofile prints to stdout

2 participants