Open philkim72 opened 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.
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))
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)
Thank you for the clarification. So setting eval = FALSE globally prevents the r chunks from running. What are we supposed to do next?
After doing that you can uncomment the chapter in _bookdown.yml
Yes, I already did that. So are going to leave their page inoperable since we are not able to resolve the issue?
Yes, unfortunately that's the best option we have :-/ .
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