jcubic
jcubic

Reputation: 66650

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

Upvotes: 1

Views: 803

Answers (2)

Japie
Japie

Reputation: 51

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.

Upvotes: 0

jcubic
jcubic

Reputation: 66650

The problem was windows line ending, replacing it with Unix (LF) ending solved the issue.

Upvotes: 1

Related Questions