lineupjs / lineup_htmlwidget

HTMLWidget wrapper of LineUp for Visual Analysis of Multi-Attribute Rankings
https://lineup.js.org
Other
54 stars 9 forks source link

widget is not working in knitted HTML document (or anywhere else) #7

Closed ngehlenborg closed 6 years ago

ngehlenborg commented 6 years ago

Using the widget (lineupjs_3.1.0) in an RMarkdown document results in empty vertical space but nothing else. I tried both Chrome (Version 67.0.3396.99 (Official Build) (64-bit)) and the HTML viewer built into RStudio (Version 1.1.442, Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/603.3.8). Nothing shows up in the browser console.

---
title: "LineUp Test"
output: html_document
---

\```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
library(lineupjs)
\```

\```{r}
lineup(iris)
\```

Some info on versions:

> R.Version()
$platform
[1] "x86_64-apple-darwin15.6.0"

$arch
[1] "x86_64"

$os
[1] "darwin15.6.0"

$system
[1] "x86_64, darwin15.6.0"

$status
[1] ""

$major
[1] "3"

$minor
[1] "4.1"

$year
[1] "2017"

$month
[1] "06"

$day
[1] "30"

$`svn rev`
[1] "72865"

$language
[1] "R"

$version.string
[1] "R version 3.4.1 (2017-06-30)"

$nickname
[1] "Single Candle"
R version 3.4.1 (2017-06-30)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS Sierra 10.12.6

Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.4/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] lineupjs_3.1.0  jsonlite_1.5    reshape2_1.4.3  forcats_0.3.0   stringr_1.3.0  
 [6] dplyr_0.7.4     purrr_0.2.4     readr_1.1.1     tidyr_0.8.0     tibble_1.4.2   
[11] ggplot2_2.2.1   tidyverse_1.2.1

loaded via a namespace (and not attached):
 [1] tidyselect_0.2.4 haven_1.1.0      lattice_0.20-35  colorspace_1.3-2 htmltools_0.3.6 
 [6] yaml_2.2.0       rlang_0.2.0      pillar_1.2.1     foreign_0.8-69   glue_1.2.0      
[11] modelr_0.1.1     readxl_1.0.0     bindrcpp_0.2.2   bindr_0.1.1      plyr_1.8.4      
[16] munsell_0.4.3    gtable_0.2.0     cellranger_1.1.0 rvest_0.3.2      htmlwidgets_1.2 
[21] psych_1.7.8      evaluate_0.10.1  knitr_1.17       httpuv_1.3.5     crosstalk_1.0.0 
[26] parallel_3.4.1   broom_0.4.2      Rcpp_0.12.16     xtable_1.8-2     scales_0.5.0    
[31] backports_1.1.1  mime_0.5         mnormt_1.5-5     hms_0.3          digest_0.6.15   
[36] stringi_1.1.7    shiny_1.0.5      grid_3.4.1       rprojroot_1.2    cli_1.0.0       
[41] tools_3.4.1      magrittr_1.5     lazyeval_0.2.1   crayon_1.3.4     pkgconfig_2.0.1 
[46] xml2_1.1.1       lubridate_1.7.3  assertthat_0.2.0 rmarkdown_1.6    httr_1.3.1      
[51] rstudioapi_0.7   R6_2.2.2         nlme_3.1-131     compiler_3.4.1  
sgratzl commented 6 years ago

should work again with in the external browser. reason was due to the recent renaming. regarding the internal usage, there is https://github.com/datavisyn/lineupjs/issues/42 that should cover that