Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse error at comment after condition #80

Closed
rillig opened this issue Oct 16, 2019 · 1 comment
Closed

Parse error at comment after condition #80

rillig opened this issue Oct 16, 2019 · 1 comment

Comments

@rillig
Copy link

rillig commented Oct 16, 2019

if (1) # comment
  print('one')
else # comment
  print('not one')
Error in base::parse(text = code, keep.source = FALSE) : 
  <text>:1:10: Unerwartete(s) SPECIAL
1: if ( 1 ) %InLiNe_IdEnTiFiEr%
             ^
@yihui
Copy link
Owner

yihui commented Oct 16, 2019

This is expected. Please read the documentation: https://yihui.name/formatr/#6-further-notes Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants