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: Unable to retrieve package records for the following packages: - "grDevices", "graphics", "grid", "methods", "stats", "tools", "utils" #278
Comments
Could you please include the full output of the deployment? |
Here is the output of the deployment:
And here is the output of appDependencies:
Thanks!! |
And what files are in |
My program, app.R, is the only file in the folder |
@jmcphers any suggestions for tracking this down further? |
@tbsund, what is the output of: ip <- as.data.frame(installed.packages(), stringsAsFactors = FALSE)
ip[ip$Priority %in% "base", ] |
|
How did you install R? For some reason, R does not believe any of the installed packages have
|
I'd also be curious to see what the output of: tools:::.get_standard_package_names() is. This sounds suspiciously similar to rstudio/packrat#381. |
I downloaded it from the CRAN website. It is my work computer, so there's a chance it's a permissions issue. I'm the only R user in my office, so if you think the permissions is the issue, do you have any advice I could relay to IT to get it fixed? Everything, including my shiny app works fine on my computer, it is only deploying it that is an issue. Her is that output:
$recommended |
Strange -- can you share the whole output of: installed.packages() The only thing I can initially guess is that R somehow lacks permissions to read some of the package metadata required when querying |
Are either of these what you meant? I feel like neither are very informative...
|
Sorry, I meant |
|
That makes even less sense! What is the output of: .libPaths() on your machine? Are you actually able to load any of those packages? Does |
I edited the output a little just because I don't know much about stuff and didn't know if the network name is sensitive.
and library(stats) did not give any error messages, so I assume it succeeds! |
Interesting. I can only guess that We could potentially work around this in Packrat. |
Okay! How? Btw, thanks for all your help! :) |
This will require some work on the Packrat side, so unfortunately there's nothing to be done on your side until we get those fixes in. Can you by any chance provide the output of: list.files(.libPaths()[1]) |
|
Great! With that I should be able to get a workaround into Packrat. |
I have a candidate fix in Packrat now. Can you try installing the development version with: if (!requireNamespace("devtools")) install.packages("devtools")
devtools::install_github("rstudio/packrat") and let me know if you have any better luck with deployment? |
It worked!!! It made me load a billion libraries, but once I did it worked. THANK YOU!!
From: Kevin Ushey [mailto:notifications@github.com]
Sent: Thursday, June 07, 2018 4:20 PM
To: rstudio/rsconnect <rsconnect@noreply.github.com>
Cc: Tiffany Sunderland <Tiffany.Sunderland@cabelas.com>; Mention <mention@noreply.github.com>
Subject: Re: [rstudio/rsconnect] Error: Unable to retrieve package records for the following packages: - "grDevices", "graphics", "grid", "methods", "stats", "tools", "utils" (#278)
I have a candidate fix in Packrat now. Can you try installing the development version with:
if (!requireNamespace("devtools")) install.packages("devtools")
devtools::install_github("rstudio/packrat")
and let me know if you have any better luck with deployment?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_rstudio_rsconnect_issues_278-23issuecomment-2D395568715&d=DwMFaQ&c=_mDkRWzOLjoVDgT8Mi46Yw&r=to7blI0sWWXXa6aO4OJKc2ufF5FJgacLay0qi5PxoYw&m=wlorVp_0kteNPjiTY7f7bS2vISlxlTvMPz-ZlWil4IU&s=BdX59-3klpxhqKfkyKg1WsCqsVKK0vD9ASvZL2JdBgI&e=>, or mute the thread<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AmEQnBKFp4P3-5FHDoDV9X2P4HycrQE9Uiks5t6ZkFgaJpZM4UZPkr&d=DwMFaQ&c=_mDkRWzOLjoVDgT8Mi46Yw&r=to7blI0sWWXXa6aO4OJKc2ufF5FJgacLay0qi5PxoYw&m=wlorVp_0kteNPjiTY7f7bS2vISlxlTvMPz-ZlWil4IU&s=AYPDlPHyBlebrOq8OWMqFFSoNxMlGYO2RuRTXytwLa0&e=>.
|
Awesome! I'm glad to hear it :-) |
HI, all
any suggestion?? no solution in other topic https://community.rstudio.com/t/error-during-deploy-shiny-app/9604 |
Can you confirm that an attempt to load the
In addition, what is the output of Does installing the latest version from CRAN with |
Hi Kevin, |
What did you see in the R console after trying each of these steps? |
HI Kevin thanks |
Fixed on the packrat side; no work to do in rsconnect. |
I am getting this error when I try to deploy my shiny app to shinyapps.io:
Error: Unable to retrieve package records for the following packages:
These are all base packages so I can't use install.packages() for them, and the only libraries that are loaded in my shiny app are readxl, ggplot2, and reshape2 which are all CRAN packages.
The text was updated successfully, but these errors were encountered: