[
https://issues.apache.org/jira/browse/SPARK-15924?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15327851#comment-15327851
]
Shivaram Venkataraman commented on SPARK-15924:
-----------------------------------------------
I'm not sure what part of this code snippet is specific to SparkR -- The code
just looks like ggplot2 / base R functions ?
> SparkR parser bug with backslash in comments
> --------------------------------------------
>
> Key: SPARK-15924
> URL: https://issues.apache.org/jira/browse/SPARK-15924
> Project: Spark
> Issue Type: Bug
> Components: SparkR
> Affects Versions: 1.6.1
> Reporter: Xuan Wang
>
> When I run an R cell with the following comments:
> {code}
> # p <- p + scale_fill_manual(values = set2[groups])
> # # p <- p + scale_fill_brewer(palette = "Set2") +
> scale_color_brewer(palette = "Set2")
> # p <- p + scale_x_date(labels = date_format("%m/%d\n%a"))
> # p
> {code}
> I get the following error message
> {quote}
> <text>:16:1: unexpected input
> 15: # p <- p + scale_x_date(labels = date_format("%m/%d
> 16: %a"))
> ^
> {quote}
> After I remove the backslash in "date_format("%m/%d\n%a"))", it works fine.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]