Skip to content

Commit 14e0454

Browse files
author
smeyer
committed
fix example for non-default rdocdir
git-svn-id: https://svn.r-project.org/R/trunk@88252 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent c7481fa commit 14e0454

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/library/base/man/regmatches.Rd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ z
123123

124124
## With `perl = TRUE` and `invert = FALSE` capture group names
125125
## are preserved. Collect functions and arguments in calls:
126-
NEWS <- head(readLines(file.path(R.home(), 'doc', 'NEWS.2')), 100)
126+
NEWS <- head(readLines(file.path(R.home("doc"), "NEWS.2")), 100)
127127
m <- gregexec("(?<fun>\\\\w+)\\\\((?<args>[^)]*)\\\\)", NEWS, perl = TRUE)
128128
y <- regmatches(NEWS, m)
129129
y[[16]]

0 commit comments

Comments
 (0)