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

Warning in block_exec(params) #25

Open
stla opened this issue Apr 6, 2014 · 5 comments
Open

Warning in block_exec(params) #25

stla opened this issue Apr 6, 2014 · 5 comments

Comments

@stla
Copy link

stla commented Apr 6, 2014

When blogifying my blog the following strange warning occurs :

Warning in block_exec(params) :
  failed to tidy R code in chunk <unnamed-chunk-4>
reason: Error in base::parse(text = code, srcfile = NULL) : 
  6:1: unexpected symbol
5: invisible(".BeGiN_TiDy_IdEnTiFiEr_HaHaHa.HaHaHa_EnD_TiDy_IdEnTiFiEr")
6: invisible
   ^

The Rmd file under blogification is the one generating this article.

@stla
Copy link
Author

stla commented Apr 6, 2014

And for this article I get

Warning in block_exec(params) :
  failed to tidy R code in chunk <unnamed-chunk-10>
reason: Error in parse(text = x, keep.source = TRUE) : 
  <text>:2:4: unexpected symbol
1: library(rcdd)
2: If you
      ^

@ramnathv
Copy link
Owner

ramnathv commented Apr 6, 2014

This is a knitr error being caused by the formatr package, which handles tidying source code printing. Try setting opts_chunk$set(tidy = F) and then running blogify. I will take a closer look at the offending chunks to tell you why formatr is throwing up this error, but for now this should do the trick.

@stla
Copy link
Author

stla commented Apr 6, 2014

Right, it does the trick. Thank you. However, as a side effect, the rgl graphics are opened while the blogification and they remain open after.

@ramnathv
Copy link
Owner

ramnathv commented Apr 6, 2014

That side effect is really weird, since formatr and the tidy option only affects how the source code is printed.

@stla
Copy link
Author

stla commented Apr 6, 2014

Indeed, I could be wrong because I was tired and I ran too many blogifications today :)

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