Closed kevinushey closed 4 years ago
Error occurs here:
The call indexes out of bounds here. The parse data looks like this:
Browse[2]> out
line1 col1 line2 col2 id parent token terminal text
1 1 1 1 37 1 -19 COMMENT TRUE # get the path to the project library
19 2 1 2 29 19 0 expr FALSE
4 2 1 2 4 4 6 SYMBOL TRUE path
6 2 1 2 4 6 19 expr FALSE
5 2 6 2 7 5 19 LEFT_ASSIGN TRUE <-
17 2 9 2 29 17 19 expr FALSE
13 2 9 2 27 13 17 expr FALSE
10 2 9 2 19 10 13 expr FALSE
7 2 9 2 12 7 10 SYMBOL_PACKAGE TRUE renv
8 2 13 2 14 8 10 NS_GET TRUE ::
9 2 15 2 19 9 10 SYMBOL TRUE paths
11 2 20 2 20 11 13 '$' TRUE $
12 2 21 2 27 12 13 SYMBOL_FUNCTION_CALL TRUE library
14 2 28 2 28 14 17 '(' TRUE (
15 2 29 2 29 15 17 ')' TRUE )
This occurs because I'm referencing a symbol called library()
, not actually calling library()
.
Minimal reprex:
downlit::highlight("foo$library()")
Bumped into this while trying to build
renv
's pkgdown site viapkgdown::build_site()
.Created on 2020-10-15 by the reprex package (v0.3.0)