Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error messages when building book #817

Closed
6 tasks done
Robinlovelace opened this issue Jun 25, 2022 · 7 comments
Closed
6 tasks done

Error messages when building book #817

Robinlovelace opened this issue Jun 25, 2022 · 7 comments

Comments

@Robinlovelace
Copy link
Collaborator

Robinlovelace commented Jun 25, 2022

I'm seeing this error message on bookdown::serve_book() after all the chapters have been build successfully. Not sure why, I don't think it should be happening as I have all packages installed with remotes::install_github("geocompr/geocompkg", force = T, repos = T) so opening as an issue:

Tweaking _book/index.html
Error in loadNamespace(name) : there is no package called ‘rstac’

It happened for:

  • rstac
  • Rsagacmd
  • tidygeocoder
  • gdalcubes
  • whitebox
  • openeo

After installing them, one-by-one and trying to build the book after each fresh install, I finally got it working. Do we need to update the dependencies in geocompkg?

@Robinlovelace
Copy link
Collaborator Author

I think the thing that unites all of these is that they are used in the book but with eval=FALSE. Not 100% sure. Thoughts @Nowosad ?

@Robinlovelace
Copy link
Collaborator Author

This is now the reason the build is failing I think. I'm going to add those packages to geocompkg.

@Nowosad
Copy link
Member

Nowosad commented Jul 2, 2022

bs4_book fails when any package mentioned in code chunks (even unevaluated ones) are missing. I tried to find a solution on how to disable it a few months ago, but I was unable to find anything...

@Robinlovelace
Copy link
Collaborator Author

Hmmm I guess we could mention them in chunks without {r}, surely that would not trigger the dependency? In any case this is the interim attempt at a fix: geocompx/geocompkg@9533c57

@Robinlovelace
Copy link
Collaborator Author

Plan to remove dependency on ows4R as it depends on rgdal and seems to be causing issues.

@Robinlovelace
Copy link
Collaborator Author

Not sure why it's complaining because the package is in geocompkg suggests: https://github.com/Robinlovelace/geocompr/runs/7161855940?check_suite_focus=true

@Robinlovelace
Copy link
Collaborator Author

These are in geocompkg Suggests so closing for now. We can re revisit later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants