radiant-rstats / radiant

Business analytics using R and Shiny. The radiant app combines the menus from radiant.data, radiant.design, radiant.basics, radiant.model, and radiant.multivariate.
https://radiant-rstats.github.io/docs/
Other
459 stars 136 forks source link

`R` via `radian` having issues with `tags$div` #190

Closed gwd999 closed 1 year ago

gwd999 commented 2 years ago

I have radian installed as a R prompt.

So I installed the {radiant} package and started R-4.2.1 via radian on WSL2 Ubuntu 20.04 bt typing radiant::radiant() in the prompt;

I am submitting this mainly to make you aware of the following behavior.

My standard browser (set to ms-edge-stable ) opens up but then I am getting the below output, with the Data section/menu item in the browser window being "inactive" (cannot be clicked on) and no data showing up:

Listening on http://127.0.0.1:1234
Warning in readLines(file, warn = FALSE) :
  invalid input found on input connection '/home/gwd/R/x86_64-pc-linux-gnu-library/4.2/radiant.design/app/tools/analysis/sample_size_ui.R'
Warning: Error in source: /home/gwd/R/x86_64-pc-linux-gnu-library/4.2/radiant.design/app/tools/analysis/sample_size_ui.R:29:19: unexpected INCOMPLETE_STRING
28:         tags$div(
29:           title = "The acceptable error is the level of precision you require (i.e., the range within which the true mean should lie). For example,
                      ^
  52: source
  51: server [/home/gwd/R/x86_64-pc-linux-gnu-library/4.2/radiant/app/server.R#44]
   5: shiny::runApp
   2: radiant.data::launch
   1: radiant::radiant
Error in source(file, encoding = enc, local = TRUE) :
  /home/gwd/R/x86_64-pc-linux-gnu-library/4.2/radiant.design/app/tools/analysis/sample_size_ui.R:29:19: unexpected INCOMPLETE_STRING
28:         tags$div(
29:           title = "The acceptable error is the level of precision you require (i.e., the range within which the true mean should lie). For example,
                      ^

radian and python info:

radian version: 0.6.3
r executable: /usr/lib/R/bin/R
r version: 4.2.1
python executable: /usr/bin/python3
python version: 3.8.10

R/radian Session Info before calling radiant::radiant() (but this is identical to the R session info, where everything works fine - so do not be too irritated by the fairly large number of loaded packages):

R version 4.2.1 (2022-06-23)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 20.04.5 LTS

Matrix products: default
BLAS/LAPACK: /opt/OpenBLAS/lib/libopenblas_skylakexp-r0.3.13.so

locale:
 [1] LC_CTYPE=C             LC_NUMERIC=C           LC_TIME=C              LC_COLLATE=C           LC_MONETARY=C
 [6] LC_MESSAGES=C.UTF-8    LC_PAPER=C.UTF-8       LC_NAME=C              LC_ADDRESS=C           LC_TELEPHONE=C
[11] LC_MEASUREMENT=C.UTF-8 LC_IDENTIFICATION=C

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

other attached packages:
[1] prompt_1.0.1 memuse_4.2-1

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.9        compiler_4.2.1    later_1.3.0       urlchecker_1.0.1  prettyunits_1.1.1 profvis_0.3.7
 [7] remotes_2.4.2     tools_4.2.1       digest_0.6.29     pkgbuild_1.3.1    pkgload_1.3.0     memoise_2.0.1
[13] lifecycle_1.0.3   rlang_1.0.6       shiny_1.7.2       cli_3.4.1         parallel_4.2.1    fastmap_1.1.0
[19] stringr_1.4.1     fs_1.5.2          htmlwidgets_1.5.4 rdoc_0.1.0        devtools_2.4.5    glue_1.6.2
[25] R6_2.5.1          processx_3.7.0    sessioninfo_1.2.2 purrr_0.3.5       callr_3.7.2       magrittr_2.0.3
[31] ps_1.7.1          promises_1.2.0.1  ellipsis_0.3.2    htmltools_0.5.3   usethis_2.1.6     mime_0.12
[37] xtable_1.8-6      httpuv_1.6.6      stringi_1.7.8     miniUI_0.1.1.1    cachem_1.0.6      crayon_1.5.2

Sessioninfo after calling radiant::radiant()

R version 4.2.1 (2022-06-23)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 20.04.5 LTS

Matrix products: default
BLAS/LAPACK: /opt/OpenBLAS/lib/libopenblas_skylakexp-r0.3.13.so

locale:
 [1] LC_CTYPE=C             LC_NUMERIC=C           LC_TIME=C              LC_COLLATE=C           LC_MONETARY=C
 [6] LC_MESSAGES=C.UTF-8    LC_PAPER=C.UTF-8       LC_NAME=C              LC_ADDRESS=C           LC_TELEPHONE=C
[11] LC_MEASUREMENT=C.UTF-8 LC_IDENTIFICATION=C

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

other attached packages:
 [1] nnet_7.3-18                shiny_1.7.2                radiant_1.4.4              radiant.multivariate_1.4.4
 [5] radiant.model_1.4.10       radiant.basics_1.4.4       radiant.design_1.4.4       mvtnorm_1.1-3
 [9] radiant.data_1.4.6         dplyr_1.0.10               tidyr_1.2.1                lubridate_1.8.0
[13] ggplot2_3.3.6              magrittr_2.0.3             prompt_1.0.1               memuse_4.2-1

loaded via a namespace (and not attached):
  [1] readxl_1.4.1         backports_1.4.1      plyr_1.8.7           GPArotation_2022.4-1 lazyeval_0.2.2
  [6] polycor_0.8-1        crosstalk_1.2.0      AlgDesign_1.2.1      usethis_2.1.6        digest_0.6.29
 [11] import_1.3.0         foreach_1.5.2        htmltools_0.5.3      fansi_1.0.3          memoise_2.0.1
 [16] tzdb_0.3.0           remotes_2.4.2        shinyFiles_0.9.3     readr_2.1.3          gower_1.0.0
 [21] clustMixType_0.2-15  sandwich_3.0-2       prettyunits_1.1.1    colorspace_2.1-0     ggrepel_0.9.1
 [26] xfun_0.33            callr_3.7.2          crayon_1.5.2         jsonlite_1.8.2       zoo_1.8-11
 [31] iterators_1.0.14     glue_1.6.2           randomizr_0.22.0     gtable_0.3.1         NeuralNetTools_1.5.3
 [36] car_3.1-0            pkgbuild_1.3.1       abind_1.4-5          scales_1.2.1         DBI_1.1.3
 [41] data.tree_1.0.0      miniUI_0.1.1.1       Rcpp_1.0.9           viridisLite_0.4.1    xtable_1.8-6
 [46] proxy_0.4-27         DT_0.24              profvis_0.3.7        htmlwidgets_1.5.4    httr_1.4.4
 [51] DiagrammeR_1.0.9     RColorBrewer_1.1-3   shinyAce_0.4.2       ellipsis_0.3.2       urlchecker_1.0.1
 [56] pkgconfig_2.0.3      sass_0.4.2           utf8_1.2.2           tidyselect_1.2.0     rlang_1.0.6
 [61] reshape2_1.4.4       later_1.3.0          munsell_0.5.0        cellranger_1.1.0     tools_4.2.1
 [66] visNetwork_2.1.0     cachem_1.0.6         xgboost_1.6.0.1      cli_3.4.1            generics_0.1.3
 [71] ranger_0.14.1        devtools_2.4.5       broom_1.0.1          evaluate_0.17        stringr_1.4.1
 [76] fastmap_1.1.0        yaml_2.3.5           processx_3.7.0       knitr_1.40           fs_1.5.2
 [81] pdp_0.8.1            admisc_0.29          purrr_0.3.5          nlme_3.1-160         mime_0.12
 [86] compiler_4.2.1       rstudioapi_0.14      plotly_4.10.0        curl_4.3.3           png_0.1-7
 [91] e1071_1.7-11         tibble_3.1.8         bslib_0.4.0          stringi_1.7.8        ps_1.7.1
 [96] lattice_0.20-45      Matrix_1.5-2         psych_2.2.5          markdown_1.1         vctrs_0.4.2
 [ reached getOption("max.print") -- omitted 27 entries ]

Congrats on this awesome package your are providing to the community ...

Greetings, Walter

vnijs commented 2 years ago

I can't replicate the issue you are seeing on macOS or Windows so I can't provide an easy fix. For now I can only point you to the set up we use with our MSBA students (i.e., a custom docker image). See below for install instructions.

https://github.com/radiant-rstats/docker/blob/master/install/rsm-msba-windows.md

vnijs commented 1 year ago

I use radian only within vscode. When I start radiant from the radiant R-terminal it works fine. Unless you have more information, I'm not sure how to proceed since I can't reproduce the issue. Feel free to reopen an issue as needed.