haozhu233 / haozhu233/kableExtra
Link can not include &
- Dominant language
- R
- Stars
- 737
- Forks
- 149
- PR merge metrics
- No merged PRs in 30d
Description
Dear Mr/Ms
I find & cannot be used in link in column_spec(), which will be used for two or more key words in URL.
Example
kableExtra::kbl(mtcars,) |>
kableExtra::kable_paper("striped") |>
kableExtra::column_spec(2,link = 'https://www.google.com/search?q=ggplot&newwindow=1')
Error information:
Error in read_xml.raw(charToRaw(enc2utf8(x)), "UTF-8", ..., as_html = as_html, :
EntityRef: expecting ';' [23]
Your Best
Jing Zhang
Contributor guide
No contributing guide indexed for this repository
Research direction
Begin by reproducing the example using column_spec(2, link=...) with a URL containing multiple query parameters, then inspect how the link is handled before read_xml.raw reports the EntityRef error. Done means URLs containing '&' work in generated tables without the XML parsing error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- html, r
- Domain
- web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100