Cannot install dbplyr on RStudio Connect

My Error deploying:

* Document depends on package "dbplyr" but it is not installed. Please
   resolve before continuing.
In addition: Warning messages:
1: In FUN(X[[i]], ...) :
  Failed to infer source for package 'dbplyr'; using latest available version on CRAN instead
2: Unable to package DESCRIPTION files: Couldn't find DESCRIPTION file for dbplyr 
Execution halted

Here is my R Markdown code:

install.packages("dbplyr")
library(DBI)
library(odbc)
library(knitr)
library(tidyr)
library(formattable)
library(stats)
library(dplyr)

What am I doing wrong?

R Markdown content that is going to be deployed to RStudio Connect should not contain any explicit package installations via install.packages. If you use (in your case) library(dbplyr) instead, the dbplyr package will be automatically installed on the Connect server during deployment.

1 Like

Hi, I got the same error after removing the install

Have you installed dbplyr on your local machine? Can you knit the document there?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.