padasch / tutorial_digital_soil_mapping

https://padasch.github.io/tutorial_digital_soil_mapping/
Other
2 stars 4 forks source link

website doesn't build #3

Closed stineb closed 11 months ago

stineb commented 11 months ago

See https://github.com/padasch/tutorial_digital_soil_mapping/actions/runs/6174822449/job/16760288494.

We have the same problem on geco-bern/tutorial_digital_soil_mapping. (but we can only raise issues here)

khufkens commented 11 months ago

That's because the publish.yaml should be deleted. Only the quarto one should be used.

khufkens commented 11 months ago

fixed on geco-bern

khufkens commented 11 months ago

Also, doesn't seem to be the issue. You need to render offline. I'll disable the runner.

Page Deployment

This repository is not rendered through GitHub runners because of the large tiff files required. To update the online deployment with new content, one has to create a fork (important: fork both branches, not just the main branch), get the data as described above, do desired changes, and run the bash command quarto publish gh-pages. See more information here: https://quarto.org/docs/publishing/github-pages.html#publish-command

stineb commented 11 months ago

The website is still not built but I don't understand why the problem now: https://github.com/geco-bern/tutorial_digital_soil_mapping/actions/runs/6732945540/job/18300602396

The file data-raw/soildata/berne_soil_sampling_locations.csv is not found but is also not part of the repo. Why not? Should it be?

khufkens commented 11 months ago

I've no idea. Check the course on where to download the data. If not found ask Pascal.

On Thu, Nov 2, 2023, 15:23 Benjamin Stocker @.***> wrote:

The website is still not built but I don't understand why the problem now:

https://github.com/geco-bern/tutorial_digital_soil_mapping/actions/runs/6732945540/job/18300602396

The file data-raw/soildata/berne_soil_sampling_locations.csv is not found but is also not part of the repo. Why not? Should it be?

— Reply to this email directly, view it on GitHub https://github.com/padasch/tutorial_digital_soil_mapping/issues/3#issuecomment-1790834196, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKKUEQYLFMWYD2BRNC7FKTYCOUGJAVCNFSM6AAAAAA622TETGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOJQHAZTIMJZGY . You are receiving this because you commented.Message ID: @.***>

stineb commented 11 months ago

@padasch ?

padasch commented 11 months ago

Please read the README, it is all explained there.

Data: You have to add all data yourself locally. That is this folder you got from Madlene. The names of these folders and where to put them is explained in the README.

Deployment: Render package locally and add only the render files to the git commit. I think this should be everything in the freeze folder. But double-check the link I put in the README.

padasch commented 11 months ago

From what I can tell, some of your changes are published online, so any current breaks must have been on your side.

Example of renaming headings from this commit:

my website:

image

geco website:

image
stineb commented 11 months ago

Thanks for getting back (and reminding me), Pascal. My problem is that I could render locally because the leaflet call leaflet::addRasterImage() gives an error.:

Quitting from lines 198-250 [unnamed-chunk-7] (02-data_preparation.qmd)
Error in `leaflet::addRasterImage()`:
! inherits(x, "RasterLayer") is not TRUE
Backtrace:
  1. leaflet::addLegend(...)
 19. leaflet::addRasterImage(...)
 20. base::stopifnot(inherits(x, "RasterLayer"))
Execution halted

That's why I set the respective chunk to eval = FALSE and thus manage to render locally.

padasch commented 11 months ago

could have to do with spatial packages that no longer work since raster package was discontinued in Oct.