Skip to content

Commit

Permalink
Generally need absolute paths in Rd srcrefs (revert part of c83069).
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.r-project.org/R/trunk@84990 00db46b3-68df-0310-9c12-caf00c1e9a41
  • Loading branch information
hornik committed Aug 20, 2023
1 parent c3a18cc commit 632d689
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/library/tools/R/RdConv2.R
Original file line number Diff line number Diff line change
Expand Up @@ -435,14 +435,12 @@ prepare_Rd <-
concordance <- NULL
if (is.character(Rd)) {
Rdfile <- Rd
srcfile <- srcfile(stripPathTo(Rdfile, "man"))
## do it this way to get info in internal warnings
Rd <- eval(substitute(parse_Rd(f, encoding = enc, fragment = frag, srcfile = src, ...),
list(f = Rd, enc = encoding, frag = fragment, src = srcfile)))
Rd <- eval(substitute(parse_Rd(f, encoding = enc, fragment = frag, ...),
list(f = Rd, enc = encoding, frag = fragment)))
} else if(inherits(Rd, "connection")) {
Rdfile <- summary(Rd)$description
srcfile <- srcfile(stripPathTo(Rdfile, "man"))
Rd <- parse_Rd(Rd, srcfile = srcfile, encoding = encoding, fragment=fragment, ...)
Rd <- parse_Rd(Rd, srcfile = srcfile, encoding = encoding, ...)
} else {
Rdfile <- attr(Rd, "Rdfile")
concordance <- attr(Rd, "concordance")
Expand Down

0 comments on commit 632d689

Please sign in to comment.