In my conditional panel, I'm setting the inputs equal to a value that includes a single apostrophe in the word.
conditionalPanel(
condition = "input.mood == 'I'm Great'"
)
I've been getting this error on the UI webpage:
Uncaught SyntaxError: Unexpected identifier
Solutions tried: Back-slash
conditionalPanel(
condition = "input.mood == 'I\'m Great'"
)
Double Back-slash:
conditionalPanel(
condition = "input.mood == 'I\\'m Great'"
)
Paste0:
conditionalPanel(
condition = "input.mood == paste0("'I","'","m Great'")"
)
OR
conditionalPanel(
condition = "input.mood == 'paste0("I","'","m Great")'"
)
I don't believe I can call paste0 or paste within the condition.