data-lessons / NEON-R-Make-Pretty-Maps-Plots

Making pretty maps reposit
6 stars 3 forks source link

htmlwidgets _posts/libs not loading in jekyll rendered site #4

Open bbest opened 9 years ago

bbest commented 9 years ago

image

See README.md for attempts so far in getting to work.

lwasser commented 9 years ago

Got it. Thanks Ben for posting this! I will be chatting with a few folks about jekyll and building these lessons in December! In the meantime, as we are working these out, we can post the Rstudio rendered html files. Is that ok with you for the time being?

Leah

Leah A. Wasser, Ph.D. Supervising Scientist Education / Data Products National Ecological Observatory Network (NEON)

Boulder, Colorado

For free tutorials and resources on working with spatio-temporal data: http://www.neondataskills.orghttp://www.neondataskills.org/

From: Ben Best notifications@github.com<mailto:notifications@github.com> Reply-To: data-lessons/NEON-R-Make-Pretty-Maps-Plots reply@reply.github.com<mailto:reply@reply.github.com> Date: Tuesday, October 27, 2015 at 12:41 PM To: data-lessons/NEON-R-Make-Pretty-Maps-Plots NEON-R-Make-Pretty-Maps-Plots@noreply.github.com<mailto:NEON-R-Make-Pretty-Maps-Plots@noreply.github.com> Subject: [NEON-R-Make-Pretty-Maps-Plots] htmlwidgets _posts/libs not loading in jekyll rendered site (#4)

[image]https://cloud.githubusercontent.com/assets/2837257/10768678/94d59dd6-7c9f-11e5-9160-58f0f472a3f1.png

Reply to this email directly or view it on GitHubhttps://github.com/data-lessons/NEON-R-Make-Pretty-Maps-Plots/issues/4.

bbest commented 9 years ago

Yep, sounds good. Just checked in a simplified .nojekyll version which uses the knitted Rmarkdown outputs and brews a listing into the index.html. See http://data-lessons.github.io/NEON-R-Make-Pretty-Maps-Plots.

bbest commented 9 years ago

Worth noting that prettier sites using htmlwidgets are done here:

as mentioned in Using htmlwidgets graphics with servr::jekyll() · Issue #8 · yihui/knitr-jekyll.

lwasser commented 9 years ago

cool -- thank you. Should we keep this open so it remains a "to do" ? we will figure it out! links are greatly appreciated!

bbest commented 9 years ago

Sure, as you wish -- reopened. I previously closed it because I committed a solution to render and display posts (see the README.md). I like the ability to knit a standalone post on my desktop and see it's fully rendered output. If I change a post then I just run make.R to update the index.html. Jekyll doesn't play nicely with htmlwidgets, hence .nojekyll.

You might consider opening a separate issue that tries to reconcile bringing these lessons together into a single site, factoring in this closed issue as a factor for consideration (if you want to include htmlwidgets) and one possibility to generate output (ie by skipping use of Jekyll and opting for simpler rendering methods like brew and Makefile).

lwasser commented 9 years ago

great suggestion! i'll do that now. and i'll make it a point to bring it up in our discussion in December. i am meeting with someone who is a Make file pro. i am sure he can help with these issues! They will run across all repos! Thanks ben :+1: