-
-
Notifications
You must be signed in to change notification settings - Fork 879
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
knitr should fail early if required libraries not present #1912
Comments
Thanks for the report. FWIWI There is a warning now in the demo (https://yihui.org/knitr/demo/wordpress/) which is reference in the help page. That said, I guess we could make this warning appears in the function |
…gainst using this knit2wp() function (#1913)
Thank you. The appeal of knit2wp, and why I am reluctant to switch to blogdown, is it takes advantage of my existing investment in a WordPress site, instead of starting over on a whole new site. These advantages include but are not limited to:
Since WordPress remains the most popular CMS, and there are so many ways to run it, I hope this functionality could be considered for long-term inclusion. This is not meant as a criticism of blogdown. It also has great uses. I am only intending to highlight distinct advantages of something like knit2wp that other techniques cannot match. |
@arencambre Totally understood. Our main point was that |
Understood. Technically |
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary. |
If I call
knit2wp
and I don't have the RWordPress library installed, I don't get an error advising me of this until after the Rmd is "compiled" into an md file. This means considerable effort has been expended all for naught. Please check for the presence of the RWordPress before the function does any heavy lifting and fail early, should it not be present.By filing an issue to this repo, I promise that
xfun::session_info('knitr')
. I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version:remotes::install_github('yihui/knitr')
.I understand that my issue may be closed if I don't fulfill my promises.
The text was updated successfully, but these errors were encountered: