RStudio Connect QuickStart - install.packages() Issue

October 4, 2019 @leungi Ivan Leung

@leungi wrote:

I'm trying to test out RS Pro ODBC drivers, and require odbc installed.

It fails on install.packages("odbc"), regardless of repos used, as follow:

> install.packages("odbc", repos = "https://cloud.r-project.org/")
Warning in install.packages :
  unable to access index for repository http://localhost:5000/packages/cran/latest/src/contrib:
  cannot open URL 'http://localhost:5000/packages/cran/latest/src/contrib/PACKAGES'
Warning in install.packages :
  unable to access index for repository http://localhost:5000/packages/internal/latest/src/contrib:
  cannot open URL 'http://localhost:5000/packages/internal/latest/src/contrib/PACKAGES'
Installing package into ‘/home/rstudio/R/x86_64-pc-linux-gnu-library/3.5’
(as ‘lib’ is unspecified)
Warning in install.packages :
  unable to access index for repository https://cloud.r-project.org/src/contrib:
  cannot open URL 'https://cloud.r-project.org/src/contrib/PACKAGES'
Warning in install.packages :
  package ‘odbc’ is not available (for R version 3.5.1)
> ?install.packages
Warning: unable to access index for repository http://localhost:5000/packages/cran/latest/src/contrib:
  cannot open URL 'http://localhost:5000/packages/cran/latest/src/contrib/PACKAGES'
Warning: unable to access index for repository http://localhost:5000/packages/internal/latest/src/contrib:
  cannot open URL 'http://localhost:5000/packages/internal/latest/src/contrib/PACKAGES'
> options("repos" = "https://cloud.r-project.org/")
> getOption("repos")
[1] "https://cloud.r-project.org/"
> install.packages("odbc", repos = "https://cloud.r-project.org/")
Warning in install.packages :
  unable to access index for repository https://cloud.r-project.org/src/contrib:
  cannot open URL 'https://cloud.r-project.org/src/contrib/PACKAGES'
Installing package into ‘/home/rstudio/R/x86_64-pc-linux-gnu-library/3.5’
(as ‘lib’ is unspecified)
Warning in install.packages :
  unable to access index for repository https://cloud.r-project.org/src/contrib:
  cannot open URL 'https://cloud.r-project.org/src/contrib/PACKAGES'
Warning in install.packages :
  package ‘odbc’ is not available (for R version 3.5.1)

Posts: 6

Participants: 2

Read full topic

Previous Article
RStudio Connect QuickStart - Oracle connection issue
RStudio Connect QuickStart - Oracle connection issue

@leungi wrote: SQL driver works fine, but not Oracle; screenshot of error below....

Next Article
typo of config parameter in RStudio Connect 1.7.8 Release notes
typo of config parameter in RStudio Connect 1.7.8 Release notes

@chringer wrote: The Release notes state: " BREAKING: RStudio Connect will now v...