Closed henrykironde closed 2 years ago
what environment / with what settings / sessionInfo are you running this in? can you create a github action or something similar that mimics what you're reporting here?
GitHub actions: Yes I think we need one. Let me get back to you later.
I have updated to R version 4.1.3 (2022-03-10) Platform: x86_64-pc-linux-gnu but still getting same error
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] portalcasting_0.35.0
loaded via a namespace (and not attached):
[1] zoo_1.8-10 tidyselect_1.1.2 xfun_0.30 purrr_0.3.4
[5] urca_1.3-0 lattice_0.20-45 colorspace_2.0-3 vctrs_0.4.1
[9] generics_0.1.2 viridisLite_0.4.0 yaml_2.3.5 utf8_1.2.2
[13] rlang_1.0.2 pillar_1.7.0 tscount_1.4.3 glue_1.6.2
[17] forecast_8.16 TTR_0.24.3 lifecycle_1.0.1 quantmod_0.4.18
[21] timeDate_3043.102 munsell_0.5.0 gtable_0.3.0 coda_0.19-4
[25] knitr_1.38 tseries_0.10-50 lmtest_0.9-40 parallel_4.1.3
[29] curl_4.3.2 fansi_1.0.3 xts_0.12.1 Rcpp_1.0.8.3
[33] scales_1.2.0 jsonlite_1.8.0 fracdiff_1.5-1 gridExtra_2.3
[37] ggplot2_3.3.5 dplyr_1.0.8 runjags_2.2.1-7 portalr_0.3.9
[41] grid_4.1.3 quadprog_1.5-8 cli_3.2.0 tools_4.1.3
[45] magrittr_2.0.3 ltsa_1.4.6 tibble_3.1.6 scoringRules_1.0.1
[49] crayon_1.5.1 pkgconfig_2.0.3 ellipsis_0.3.2 MASS_7.3-56
[53] lubridate_1.8.0 httr_1.4.2 viridis_0.6.2 R6_2.5.1
[57] nnet_7.3-17 nlme_3.1-157 compiler_4.1.3
>
I will create a GitHub actions
It's also quite possible that you're running with an out-of-date local instance of the portalcasting directory, since there is not a call to setup or such.
I just created a new local instance of everything (new clone of the repo) and ran portalcasting::setup_production()
and then shiny::runApp()
and it works for me
Let me try that.
It looks like that was the error. I will add it to the update script, to always setup_production
Registered S3 method overwritten by 'quantmod': method from as.zoo.data.frame zoo
processing file: models.Rmd output file: models.knit.md
Output created: models.html
Warning: Error in [.data.frame: undefined columns selected 172: stop 171: [.data.frame 169: plot_cast_ts 168: renderPlot [/home/portal-forecast-web/portal-forecast-web/app.R#77] 166: func 126: drawPlot 112:
96: drawReactive
83: renderFunc
82: output$main_plot
1: runApp
Warning: Error in Summary.factor: ‘max’ not meaningful for factors
172: stop
171: Summary.factor
169: plot_cast_point
168: renderPlot [/home/portal-forecast-web/portal-forecast-web/app.R#88]
166: func
126: drawPlot
112:
96: drawReactive
83: renderFunc
82: output$species_summary_plot
1: runApp