Skip to content

Commit fdd7205

Browse files
tesujimathSimon Guest
andauthored
Readonly file io error (#1346)
* Copy cpp source with copy.mode = false Fixes #1345 * Add to ChangeLog * Fix ChangeLog formatting --------- Co-authored-by: Simon Guest <[email protected]>
1 parent 6193de5 commit fdd7205

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2024-11-25 Simon Guest <[email protected]>
2+
3+
* src/attributes.cpp: fix CPP source having to be writable
4+
15
2024-11-03 Marco Colombo <[email protected]>
26

37
* vignettes/rmd/Rcpp-FAQ.Rmd: Fixed typos

src/attributes.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3279,7 +3279,7 @@ namespace {
32793279

32803280
// copy the source file to the build dir
32813281
Rcpp::Function filecopy = Rcpp::Environment::base_env()["file.copy"];
3282-
filecopy(cppSourcePath_, generatedCppSourcePath(), true);
3282+
filecopy(cppSourcePath_, generatedCppSourcePath(), true, Rcpp::_["copy.mode"] = false);
32833283

32843284
// parse attributes
32853285
SourceFileAttributesParser sourceAttributes(cppSourcePath_, "", true);

0 commit comments

Comments
 (0)