-
Notifications
You must be signed in to change notification settings - Fork 79
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
Build error : Failed to retrieve package sources #98
Comments
This error means that the package foreign has not been found during the deployment. 0.8-81 is the last CRAN version, so I am not sure why it goes look into Archive. You may try again to republish after doing a
you may not use it directly but it could be a dependency of you package. Just curious: are you aiming to publish the rendered book to bookdown.org ? Or publishing the source and build the book there ? |
Thank you for your kind reply. actually, I just want to share my source code with my colleagues. I can't understand why the error occurs...T-T |
Sharing the source code happens usually in a source repo like Github or Gitlab. Bookdown.org will allow you to publish the book result.
This is a deployment error when your code try to be restore on the server. Currently you are publishing your all source code project, this means this include R and Rmd files that contains R code. When deploying rsconnect 📦 will be used and all your R package dependencies will be looked for. Direct and indirect dependencies. If you are not using directly foreign, it just means that this packages is used somewhere by one your are using. But I don't know why, it tries to restore by downloading the foreign package from the Archive and 0.8-81 is not in the Archive it is the last CRAN published version. Which version of R are you using ? Unfortunatly, this is not an issue with bookdown but rsconnect or packrat - or even something wrong with the CRAN mirror used. Do you really need to publish the source code into bookdown.org for your need ? |
Oh I think I know now ! So you won't be able to publish source code to bookdown.org that uses packages only available for R 4.0.0 and above. You need to publish the output book only for now. |
I'll move this to bookdown.org as this is an issue with our hosting service. Thanks ! |
Hi, I appreciate your awesome bookdown package.
I have a deployment issue.
I tried to fix this error while 1 week, but I can't find a way to solve this problem.
2 weeks ago, I can deploy my book to the website below.
https://bookdown.org/yuaye_kt/io_methology/
when I deploy my bookdown, there was an error message below.
I didn't use foreign library, but there was a Build error (failed to retrieve package sources).
The text was updated successfully, but these errors were encountered: