You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One very cool feature would be to make codebook Rmd files work with knit2wp and/or output: github_document. Particularly, the github_document version would be cool, then one could directly view a codebook on a Github repo and e.g. sync it with the osf!
As we see, the text is pitch-perfect, but the codebook table gets transformed into a picture -- I suspect that has to do with the searchability javascript plugin of the table, but I'm not sure.
Cheers
Jana
The text was updated successfully, but these errors were encountered:
Hi @JanaJarecki, not sure I can solve this on my end, but I'll think about. It happens, because knitr uses the webshot packages to make an image if we don't render to HTML. Of course, you are rendering to HTML, but indirectly via Markdown. Maybe I can catch if you're doing that and spit out a non-fancy table. Or maybe you could use rmarkdown::render with clean = F and use the resulting Markdown.
@rubenarslan thank you for the answer, clarifications, and suggestions. Anything I can do here?
Quick Feedback:
knitting with clean = F and then kit2wp() with the resulting *.md file produces just a <!–html_preserve–> statement, no luck here . I tried manually deleting the <!–html_preserve–> from the *.md file but that doesn't render the code. Result see here, the first codebook is with manually-remoced html_preserve; the second codebook on the page is rendering from clean = F as is: http://janajarecki.com/blog/test/
One very cool feature would be to make
codebook
Rmd files work withknit2wp
and/oroutput: github_document
. Particularly, the github_document version would be cool, then one could directly view a codebook on a Github repo and e.g. sync it with the osf!Here is a sample current output: of uploading a codebook Rmd with
knit2wp
(the github_document variant produces mostly the same): http://janajarecki.com/blog/codebook-for-data-in-jarecki-rieskamp-2020/As we see, the text is pitch-perfect, but the codebook table gets transformed into a picture -- I suspect that has to do with the searchability javascript plugin of the table, but I'm not sure.
Cheers
Jana
The text was updated successfully, but these errors were encountered: