Both package 'ggpubr' and 'rstatix' depend on package 'nloptr'. Since the latest update of 'nloptr' (Around May 5th if I remembered correctly), I can't update my shinyapp anymore. And I tried with another small reprex that used 'ggpubr' package, which also failed with "ERROR: configuration failed for package 'nloptr'".
Here is a small reprex:
library(ggpubr)
library(shiny)
data("iris")
## ui file
ui <- fluidPage(
plotOutput('barplot')
)
## server file
server <- function(input, output, session) {
data(iris)
barplot1 <- reactive({
ggbarplot(data = iris, y='Sepal.Length', x='Species',
add = 'mean_sd', fill = 'Species' ) +
stat_compare_means(method = 't.test',
ref.group = 'setosa',
label = 'p.signif', hide.ns = T)
})
output$barplot <- renderPlot(barplot1())
}
The error basically indicated that cmake is not found.
Uploading bundle for application: 6265085...DONE
Deploying bundle: 5893926 for application: 6265085 ...
Waiting for task: 1151049668
building: Building image: 6883839
building: Fetching packages
building: Building package: nloptr
################################ Begin Task Log ################################
...
checking for cmake... no
------------------ CMAKE NOT FOUND --------------------
CMake was not found on the PATH. Please install CMake
...
ERROR: configuration failed for package nloptr
* removing /opt/R/4.1.2/lib/R/library/nloptr
################################# End Task Log #################################
Error: Unhandled Exception: Child Task 1151049670 failed: Error building image: Error building nloptr (2.0.1). Build exited with non-zero status: 1
But I thought shinyapp.io had preinstalled cmake before app deployment? I don't know what happened. Please offer me some help here, thanks.