jtr13 / cc22mw

Community contributions for EDAV Fall 2022 Mon/Wed
https://jtr13.github.io/cc22mw/
0 stars 67 forks source link

Pull Request #38 Failing #62

Open philkim72 opened 2 years ago

philkim72 commented 2 years ago

Pull Request #38 is failing. I have removed geocomputationwithr.Rmd from the bookdown file for now.

Action Failure: https://github.com/jtr13/cc22mw/actions/runs/3484783948 Detailed run message: https://github.com/jtr13/cc22mw/actions/runs/3484783948/jobs/5829693461

jtr13 commented 2 years ago

It seems that the leaflet package is causing this problem: https://github.com/jtr13/cc22tt/issues/24

I would recommend setting eval=FALSE for any chunks that use leaflet and add a comment # not run to the chunks.

philkim72 commented 2 years ago

Can you clarify how to set eval=False or can you tell me if what I did below is correct?

{r, eval=False} leaflet()%>% addProviderTiles("NASAGIBS.ViirsEarthAtNight2012") %>% addMarkers( lng = 73, lat = 18, label = "Home Sweet Home", labelOptions = labelOptions(noHide = T))%>% addMarkers( lng = -85, lat = 31, label = "Columbia University", labelOptions = labelOptions(noHide = T))%>% addMarkers( lng = -19, lat = 64, label = "Iceland - Dream Destination", labelOptions = labelOptions(noHide = T))

jtr13 commented 2 years ago

The simplest thing to do is globally set eval to FALSE for all the code chunks by changing this line (near the top):

knitr::opts_chunk$set(warning = FALSE, message = FALSE)

to

knitr::opts_chunk$set(warning = FALSE, message = FALSE, eval = FALSE)
philkim72 commented 2 years ago

Thank you for the clarification. So setting eval = FALSE globally prevents the r chunks from running. What are we supposed to do next?

jtr13 commented 2 years ago

After doing that you can uncomment the chapter in _bookdown.yml

philkim72 commented 2 years ago

Yes, I already did that. So are going to leave their page inoperable since we are not able to resolve the issue?

jtr13 commented 1 year ago

Yes, unfortunately that's the best option we have :-/ .