Hello,
I am trying to upload a shiny app to shinyapp.io. If I run the commands locally, it works fine, but clicking 'Run App' in RStudio or uploading it to shinyapp.io gives an issue. I have located the offending issue to be a failure run library(survival)
. While I know shinyapp.io likes to use the CRAN repository, I believe this package to be on CRAN, which leaves me mighty confused. I see the package using available.packages()
but not necessarily on https://cran.r-project.org/web/checks/check_summary_by_package.html. If the key is through rsconnect::appDependencies()
, it appears there are too many files despite the minimal code run below:
Here's a minimal statement to induce the error:
library(survival)
simple_patient <- data.frame("event" = c(293, 627, 607, 691, 277, 652, 143, 684))
surv_object <- Surv(time = simple_patient$event, event = rep(1, length(simple_patient$event)))
Thanks for any help, I'll be sure to mark an answer if I come across one for future readers.