Skip to content

Commit d9468a4

Browse files
committed
Use message() to signal very old helper functions are redundant
1 parent 274f5ab commit d9468a4

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2025-11-29 Dirk Eddelbuettel <edd@debian.org>
2+
3+
* R/RcppLdpath.R: Revisit deprecation warnings via 'message()' to be
4+
turned into warning or deprecation in 12 or more months 'when suitable'
5+
16
2025-11-24 Dirk Eddelbuettel <edd@debian.org>
27

38
* inst/include/Rcpp/r/check_r_headers.h: Add RCPP_NO_R_HEADERS_CHECK

R/RcppLdpath.R

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ Rcpp.quoteNonStandard <- function(path) {
3333
RcppLdPath <- function() {
3434
#.Deprecated(msg=paste("This function is now deprecated as it has not",
3535
# "been needed since 2013."))
36+
message("'RcppLdPath' has not been needed since 2013 (!!) and may get removed in 2027. Please update your 'Makevars'.")
3637
""
3738
}
3839

@@ -47,6 +48,7 @@ RcppLdPath <- function() {
4748
RcppLdFlags <- function() {
4849
#.Deprecated(msg=paste("This function is now deprecated as it has not",
4950
# "been needed since 2013."))
51+
message("'RcppLdFlags' has not been needed since 2013 (!!) and may get removed in 2027. Please update your 'Makevars'.")
5052
""
5153
}
5254

@@ -67,11 +69,13 @@ RcppCxxFlags <- function(cxx0x=FALSE) {
6769
CxxFlags <- function(cxx0x=FALSE) {
6870
#.Deprecated(msg=paste("This function is now deprecated as R uses minimally",
6971
# "viable compilers om all platforme."))
72+
message("'CxxFlags' has not been needed since 2013 (!!) and may get removed in 2027. Please update your 'Makevars'.")
7073
cat(RcppCxxFlags(cxx0x=cxx0x)) # #nocov
7174
}
7275

7376
## LdFlags defaults to static linking on the non-Linux platforms Windows and OS X
7477
LdFlags <- function() {
78+
message("'LdFlags' has not been needed since 2013 (!!) and may get removed in 2027. Please update your 'Makevars'.")
7579
cat(RcppLdFlags())
7680
}
7781

@@ -83,11 +87,13 @@ RcppCapabilities <- capabilities <- function() .Call( rcpp_capabilities )
8387
RcppCxx0xFlags <- function() {
8488
#.Deprecated(msg=paste("This function is now deprecated as R uses minimally",
8589
# "viable compilers om all platforme."))
90+
message("'RcppCxx0xFlags' has not been needed since 2013 (!!) and may get removed in 2027. Please update your 'Makevars'.")
8691
script <- Rcpp.system.file( "discovery", "cxx0x.R" ) # #nocov start
8792
flag <- capture.output( source( script ) )
8893
flag
8994
}
9095

9196
Cxx0xFlags <- function() {
97+
message("'Cxx0xFlags' has not been needed since 2013 (!!) and may get removed in 2027. Please update your 'Makevars'.")
9298
cat(RcppCxx0xFlags()) # #nocov end
9399
}

0 commit comments

Comments
 (0)