Reputation: 21292
I'm trying to deploy a Shiny app. When the app is running in RStudio I select the deploy button to republish my updated app.
After a minute or so I receive the following error block in the console:
/usr/local/lib/R/site-library/dplyr/include/dplyr/main.h:11:19: fatal error: plogr.h: No such file or directory
#include <plogr.h>
^
compilation terminated.
In file included from /usr/local/lib/R/site-library/dplyr/include/dplyr.h:4:0,
from rows-data.cpp:2:
/usr/local/lib/R/site-library/dplyr/include/dplyr/main.h:11:19: fatal error: plogr.h: No such file or directory
#include <plogr.h>
^
compilation terminated.
make: *** [rows.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [rows-data.o] Error 1
ERROR: compilation failed for package ‘purrr’
* removing ‘/usr/local/lib/R/site-library/purrr’
################################# End Task Log #################################
Error: Unhandled Exception: Child Task 492377328 failed: Error building image: Error building purrr (0.2.2). Build exited with non-zero status: 1
Execution halted
I found this discussion on Google groups. Reading through this discussion I tried to reinstall dplyr with dependencies = T.
Here are the libraries I try to load with my app:
library(tidyverse)
library(shiny)
library(shinydashboard)
library(shinyjs)
library(lubridate)
library(DT)
library(scales)
I also tried to install plogr directly:
> install.packages("plogr.h")
Warning in install.packages :
package ‘plogr.h’ is not available (for R version 3.3.3)
Does anyone have any advice for deploying my Shinyapp based on this info? What should I do to get around this error?
Upvotes: 1
Views: 511
Reputation: 5206
@Doug Fir I also struggled with this but finally got this working.
1) I first also tried with no luck to
install.packages("dplyr", dependencies = TRUE)
2) So I then took a good look at the error messages on Deploy tab in Rstudio and noticed that it was complaining about another package or two. In this case purrr
and Rcpp
. So I reinstalled these two as well.
so I:
install.packages(c("Rcpp","purrr"))
3) I noticed Shiny was not up to date (1.0.1 not 1.0.5) so I updated that for good measure.
install.packages("shiny")
4) then quit Rstudio and restarted R.
Shiny app with dplyr then finally redeployed. Not sure if this beats your answer, but at least dplyr 0.7.4
worked without needing to downgrade.
I am posting this to provide clues if someone else has this problem.
Upvotes: 2