'Error: <text>:1:1: unexpected input in R
I've got this error when called htmlTemplate in Shiny application on Windows 7:
Error: <text>:1:1: unexpected input
Solution 1:[1]
In addition to changing line endings to Unix (LF), I had to also remove blank lines from all the .html files that I called using htmlTemplate.
Solution 2:[2]
If you want to use require you need to use node-fetch v2 by running npm like this:
npm install node-fetch@2
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Japie |
| Solution 2 | Carlos Jafet Neto |
