Package on CRAN failed to install on RStudio Connect


#1

I am new to RStudio Connect and am having trouble using googleAuthR and googleAnalyticsR packages in published RMarkdown files.

I have successfully published other content using other packages, including all of the package dependencies for googleAuthR. For example, an R Notebook containing this chunk runs fine:

library(assertthat)
library(digest)
library(httr)
library(jsonlite)
library(R6)
library(memoise)
library(utils)

However, an R Markdown file with only this chunk will throw an error:

library(googleAuthR)

Error Messages:

curl: (22) The requested URL returned error: 404 Not Found
Error in getSourceForPkgRecord(pkgRecord, srcDir(project), availablePackagesSource(repos = repos), : Failed to retrieve package sources for googleAuthR 0.6.2 from CRAN (internet connectivity issue?)
The most recent snapshot was generated using R version 3.4.2

Has anyone else successfully used the googleAuthR package on RStudio Connect, or do you have any tips on how to diagnose issues where a package on CRAN is not retrieved by RStudio Connect?


#2

Hi Becky,

Please take a look at: https://support.rstudio.com/hc/en-us/articles/360001230774

You can also submit a support ticket by emailing support@rstudio.com.

Best,

Sean


#3

Hi Sean,

Thanks for that link! I'll review and hopefully it's just user error!

Thanks!
Becky