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

svg.append() is not a function #56

Closed
moldach opened this issue Feb 15, 2021 · 2 comments
Closed

svg.append() is not a function #56

moldach opened this issue Feb 15, 2021 · 2 comments

Comments

@moldach
Copy link

moldach commented Feb 15, 2021

Trying out the drawr function from the vignette

library(shinysense)
library(dplyr)

plot_data <- tibble(
  x = 1:50, 
  value = sin(x)
)

drawr(
    plot_data,
    x_col = x,
    y_col = value,
    draw_start = 25 # Start obscuring data after x = 25
)

I see the following error:

Error: svg.append(...).translate is not a function in (main.js#18:24)
TypeError: svg.append(...).translate is not a function

Session info

> sessionInfo()
R version 4.0.3 (2020-10-10)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 20.04.2 LTS

Matrix products: default
BLAS:   /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so.3
LAPACK: /usr/lib/x86_64-linux-gnu/openblas-pthread/liblapack.so.3

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

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

other attached packages:
 [1] keras_2.3.0.0.9000 forcats_0.5.1      stringr_1.4.0     
 [4] dplyr_1.0.4        purrr_0.3.4        readr_1.4.0       
 [7] tidyr_1.1.2        tibble_3.0.6       ggplot2_3.3.3     
[10] tidyverse_1.3.0    shinysense_0.2.0   shiny_1.6.0       

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.6           lattice_0.20-41      lubridate_1.7.9.2   
 [4] zeallot_0.1.0        assertthat_0.2.1     digest_0.6.27       
 [7] utf8_1.1.4           mime_0.10            R6_2.5.0            
[10] cellranger_1.1.0     backports_1.2.1      reprex_1.0.0        
[13] httr_1.4.2           pillar_1.4.7         tfruns_1.4          
[16] rlang_0.4.10         readxl_1.3.1         rstudioapi_0.13     
[19] whisker_0.4          jquerylib_0.1.3      Matrix_1.3-2        
[22] reticulate_1.18-9007 shinythemes_1.2.0    r2d3_0.2.5          
[25] htmlwidgets_1.5.3    munsell_0.5.0        broom_0.7.4         
[28] compiler_4.0.3       httpuv_1.5.5         modelr_0.1.8        
[31] base64enc_0.1-3      pkgconfig_2.0.3      tensorflow_2.2.0    
[34] htmltools_0.5.1.1    tidyselect_1.1.0     fansi_0.4.2         
[37] crayon_1.4.1         dbplyr_2.0.0         withr_2.4.1         
[40] later_1.1.0.1        rappdirs_0.3.3       grid_4.0.3          
[43] jsonlite_1.7.2       xtable_1.8-4         gtable_0.3.0        
[46] lifecycle_1.0.0      DBI_1.1.1            magrittr_2.0.1      
[49] scales_1.1.1         cli_2.3.0            stringi_1.5.3       
[52] cachem_1.0.4         fs_1.5.0             promises_1.2.0.1    
[55] xml2_1.3.2           bslib_0.2.4          ellipsis_0.3.1      
[58] generics_0.1.0       vctrs_0.3.6          tools_4.0.3         
[61] glue_1.4.2           hms_1.0.0            fastmap_1.1.0       
[64] yaml_2.2.1           colorspace_2.0-0     rvest_0.3.6         
[67] haven_2.3.1          sass_0.3.1         
@moldach
Copy link
Author

moldach commented Feb 15, 2021

I don't know anything above Javascript; however, the offending line seems to be in the main.js file:

offending-line

Could it potentially be an update to the {r2d3} library (or the underlying d3-jetpack code) which caused this?

@moldach
Copy link
Author

moldach commented Feb 18, 2021

Follow instructions in #54 to fix this

@moldach moldach closed this as completed Feb 18, 2021
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

1 participant