From 8b0170a24494ae3e236c54e8a183317784e2e641 Mon Sep 17 00:00:00 2001 From: Simon Guest Date: Mon, 25 Nov 2024 16:03:19 +1300 Subject: [PATCH 1/3] Copy cpp source with copy.mode = false Fixes #1345 --- src/attributes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/attributes.cpp b/src/attributes.cpp index 4dfbdbfeb..33f3459c3 100644 --- a/src/attributes.cpp +++ b/src/attributes.cpp @@ -3279,7 +3279,7 @@ namespace { // copy the source file to the build dir Rcpp::Function filecopy = Rcpp::Environment::base_env()["file.copy"]; - filecopy(cppSourcePath_, generatedCppSourcePath(), true); + filecopy(cppSourcePath_, generatedCppSourcePath(), true, Rcpp::_["copy.mode"] = false); // parse attributes SourceFileAttributesParser sourceAttributes(cppSourcePath_, "", true); From 87b654c521399c0c15f965c9b3cf19442ae0a000 Mon Sep 17 00:00:00 2001 From: Simon Guest Date: Mon, 25 Nov 2024 16:09:20 +1300 Subject: [PATCH 2/3] Add to ChangeLog --- ChangeLog | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ChangeLog b/ChangeLog index 219b3ad0b..4b0d15d88 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2024-11-25 Simon Guest + * src/attributes.cpp: fix CPP source having to be writable + 2024-11-03 Marco Colombo * vignettes/rmd/Rcpp-FAQ.Rmd: Fixed typos From e3591aa23d643b29f78ba2eca1b55f458bd83a13 Mon Sep 17 00:00:00 2001 From: Simon Guest Date: Mon, 25 Nov 2024 17:17:40 +1300 Subject: [PATCH 3/3] Fix ChangeLog formatting --- ChangeLog | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4b0d15d88..dc08c3852 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,6 @@ -2024-11-25 Simon Guest - * src/attributes.cpp: fix CPP source having to be writable +2024-11-25 Simon Guest + + * src/attributes.cpp: fix CPP source having to be writable 2024-11-03 Marco Colombo