Installation fails: Error in parse(outFile) : {INSTALL_DIR}/officer/R/docx_comments.R:52:44: unexpected input #550
-
I am unable to install officer:
The same error occurs when I try to install the latest stable version or install from source:
I am running R 3.6.0 on Ubuntu 20.04:
For some reason, it doesn't recognize the '\' character in code. A quick web search indicates that this has something to do with the system locale. My locale info is:
The installation happens under the standard Ubuntu Docker image. This is really odd, because the same Dockerfile has worked previously (~year ago). Here is an example Dockerfile to reproduce the issue:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hello, OK, thanks for letting us know that issue. This code is coming from a PR and I did not notice it was using synxtax Is it possible for you to update to latest R? |
Beta Was this translation helpful? Give feedback.
Hello, OK, thanks for letting us know that issue.
This code is coming from a PR and I did not notice it was using synxtax
\(id)
instead offunction(id)
. So the issue can be fixed with R >4.0
or4.1
(not sure when>
and\(id)
were integrated).Is it possible for you to update to latest R?