JuliaInterop / JuliaCall

Embed Julia in R
https://non-contradiction.github.io/JuliaCall/index.html
Other
267 stars 36 forks source link

knitr::wrap() depracted use knitr::sew() #177

Closed KevCaz closed 2 years ago

KevCaz commented 2 years ago

Hi @Non-Contradiction

Thank you for all your work on this very useful package. I was using the following code in a code chunk in a R Markdown file

JuliaCall::julia_command("VERSION") 

and got the following warning

## Warning: The internal function knitr:::wrap() has been deprecated. Please use
## the exported function knitr::sew() instead.

## Warning: The internal function knitr:::wrap() has been deprecated. Please use
## the exported function knitr::sew() instead.

I've updated the corresponding code with sew() that has been introduced in knitr 1.33 (https://github.com/yihui/knitr/blob/master/NEWS.md) and will replace wrap(), plus it is exported. All good locally and as expected, no more warning in my example.

Non-Contradiction commented 2 years ago

Thank you very much!