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

Silent syntax error in Rmd example #341

Open
unode opened this issue Apr 28, 2021 · 2 comments
Open

Silent syntax error in Rmd example #341

unode opened this issue Apr 28, 2021 · 2 comments

Comments

@unode
Copy link
Contributor

unode commented Apr 28, 2021

There seems to be a silent error in the 05-rmarkdown-example.Rmd template included.

The error is also visible in the logs of GitHub Actions:

/home/runner/work/lesson-example/lesson-example/_episodes_rmd/05-rmarkdown-example.Rmd
--------------------------------------------------------------------------------------

ERROR 1: <text>:187:1: unexpected '>'
186: 
187: >
     ^

but looking at the file it's not clear to me what is wrong.

@fmichonneau
Copy link
Contributor

I believe it's a bug with renv that doesn't recognize properly code blocks prefixed with > as found in exercises and solutions.

maxim-belkin added a commit to maxim-belkin/swc-lesson-example that referenced this issue May 5, 2021
This is to suppress the `ERROR 1: <text>:187:1: unexpected '>'` error
message reported in carpentries#341
@fmichonneau
Copy link
Contributor

@maxim-belkin's pull request removes the warning. However, using renv.ignore = TRUE leads renv to ignore the chunk when looking for dependencies. In this case, it's fine because the only function used in the chunk belongs to base R but in other contexts this approach could lead to dependencies not being recognized.

fmichonneau pushed a commit to fmichonneau/lesson-example that referenced this issue Apr 5, 2022
This is to suppress the `ERROR 1: <text>:187:1: unexpected '>'` error
message reported in carpentries#341
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