Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

renderDT() and DTOutput() functions not found #1

Open
scrameri opened this issue Dec 18, 2020 · 4 comments
Open

renderDT() and DTOutput() functions not found #1

scrameri opened this issue Dec 18, 2020 · 4 comments

Comments

@scrameri
Copy link

scrameri commented Dec 18, 2020

Dear Damaris and Christian,

I've just run the ODMAP shiny app and apparently the functions renderDT() and DTOutput() cannot be found using my shiny package version 1.5 in R version 4.0.2, there seems to be a conflict between the DT and shiny packages, or some function names have been changed in new shiny package versions:

> shiny::runApp('~/Downloads/ODMAP-master')
Loading required package: shiny

Listening on http://127.0.0.1:7369
Need Shiny help? I'm available for consulting:
	https://attalitech.com

Attaching package: ‘shinyjs’

The following object is masked from ‘package:shiny’:

    runExample

The following object is masked from ‘package:raster’:

    click

The following object is masked from ‘package:sp’:

    show

The following objects are masked from ‘package:methods’:

    removeClass, show


Attaching package: ‘shinyWidgets’

The following object is masked from ‘package:shinyjs’:

    alert


Attaching package: ‘shinydashboard’

The following object is masked from ‘package:graphics’:

    box


Attaching package: ‘DT’

The following objects are masked from ‘package:shiny’:

    dataTableOutput, renderDataTable

── Attaching packages ─────────────────────────────────────────────────────────────────── tidyverse 1.3.0 ──
✓ tibble  3.0.4     ✓ dplyr   1.0.2
✓ tidyr   1.1.2     ✓ stringr 1.4.0
✓ readr   1.4.0     ✓ forcats 0.5.0
✓ purrr   0.3.4     
── Conflicts ────────────────────────────────────────────────────────────────────── tidyverse_conflicts() ──
x tidyr::extract() masks raster::extract()
x dplyr::filter()  masks stats::filter()
x dplyr::lag()     masks stats::lag()
x dplyr::select()  masks raster::select()
Type, vignette("rmm_directory") for an overview of functions

  vignette("rmm_vignette") for using the functions 

  vignette("rmm_workflow") for incorporating rmm in a range modeling workflow, or

  vignette("rmm_Multispeices") for including multiple species in a single rmm object
Warning: Error in : 'renderDT' is not an exported object from 'namespace:DT'
  50: stop
  49: getExportedValue
  48: ::
  47: server [/Users/crameri/Downloads/ODMAP-master/server.R#643]
Error : 'renderDT' is not an exported object from 'namespace:DT'
Warning: Error in DTOutput: could not find function "DTOutput"
  99: dots_list
  98: div
  97: render_authors [/Users/crameri/Downloads/ODMAP-master/server.R#22]
  96: renderUI [/Users/crameri/Downloads/ODMAP-master/server.R#90]
  95: func
  82: origRenderFunc
  81: output$Overview_UI
   1: shiny::runApp

Here is my session info:

>sessionInfo()
R version 4.0.2 (2020-06-22)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Catalina 10.15.7

Matrix products: default
BLAS:   /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRlapack.dylib

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

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

other attached packages:
 [1] rangeModelMetadata_0.1.3 forcats_0.5.0            stringr_1.4.0           
 [4] dplyr_1.0.2              purrr_0.3.4              readr_1.4.0             
 [7] tidyr_1.1.2              tibble_3.0.4             ggplot2_3.3.2           
[10] tidyverse_1.3.0          DT_0.2.10                shinydashboard_0.7.1    
[13] shinythemes_1.1.2        shinyWidgets_0.5.4       shinyjs_2.0.0           
[16] shiny_1.5.0             

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.5        lubridate_1.7.9.2 assertthat_0.2.1  digest_0.6.27     mime_0.9         
 [6] R6_2.5.0          cellranger_1.1.0  backports_1.2.1   reprex_0.3.0      evaluate_0.14    
[11] httr_1.4.2        pillar_1.4.7      rlang_0.4.9       readxl_1.3.1      rstudioapi_0.13  
[16] rmarkdown_2.5     htmlwidgets_1.5.3 munsell_0.5.0     broom_0.7.2       compiler_4.0.2   
[21] httpuv_1.5.4      modelr_0.1.8      xfun_0.19         pkgconfig_2.0.3   htmltools_0.5.0  
[26] tidyselect_1.1.0  fansi_0.4.1       crayon_1.3.4      dbplyr_2.0.0      withr_2.3.0      
[31] later_1.1.0.1     grid_4.0.2        jsonlite_1.7.2    xtable_1.8-4      gtable_0.3.0     
[36] lifecycle_0.2.0   DBI_1.1.0         magrittr_2.0.1    scales_1.1.1      cli_2.2.0        
[41] stringi_1.5.3     fs_1.5.0          promises_1.1.1    xml2_1.3.2        ellipsis_0.3.1   
[46] generics_0.1.0    vctrs_0.3.5       tools_4.0.2       glue_1.4.2        hms_0.5.3        
[51] fastmap_1.0.1     yaml_2.2.1        colorspace_2.0-0  rvest_0.3.6       knitr_1.30       
[56] haven_2.3.1  

However, if I replace the five renderDT() with renderDataTable(), and the two DTOutput() with dataTableOutput() in the server.R script, it all works fine.

Have a nice weekend,
Simon

@ChrKoenig
Copy link
Owner

Thanks @scrameri, we'll take that into account with the next update.

@KianBabanezhad
Copy link

Thanks for your help. I did the replacement, then the application worked on the web.
But I have faced another problem. The editable table I had on the app disappeared once running on the web. How can I get it back?

@ChrKoenig
Copy link
Owner

Hi Kian, this repo is now maintained under https://github.com/UP-macroecology/ODMAP. Please install this version of ODMAP, the issue might be solved already. If not, please post over there.

@KianBabanezhad
Copy link

How can I install it? I tried < install_github("ODMAP-master") > , but I have an error.
Error in parse_repo_spec(repo) :
Invalid git repo specification: 'ODMAP-master'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants