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

for loops highlighted by code checker #141

Closed
kieranjmartin opened this issue Feb 21, 2018 · 2 comments
Closed

for loops highlighted by code checker #141

kieranjmartin opened this issue Feb 21, 2018 · 2 comments

Comments

@kieranjmartin
Copy link

@kieranjmartin kieranjmartin commented Feb 21, 2018

This is using learnr 0.9.1 and R 3.4.

When creating an exercise chunk, if I add a for loop, e.g.

for (i in seq(1,5)){
     x <- i
 }

Then the code checking in the html highlights the for loop as an error , with "unexpected symbol 'in'" and "unexpected symbol 'seq'". The code seems to run fine when I used run code or submit answer so this is just affecting the display. I attach an example of this
for_error

@jjallaire
Copy link
Member

@jjallaire jjallaire commented Feb 21, 2018

@kevinushey Any insight into what could be going on here?

@kevinushey
Copy link
Collaborator

@kevinushey kevinushey commented Feb 21, 2018

Thanks for the bug report! Fixed up here:

2adadb6
7a6a5ae

@bborgesr bborgesr closed this Mar 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.