htmlwidgets / iquiz

Interactive Quizzes for R Markdown
7 stars 1 forks source link

Problem with visualization iquiz and Rmd (possible conflict) #1

Open arturochian opened 9 years ago

arturochian commented 9 years ago

Hi @ramnathv, I'm reporting 2 issues:

1.- Visualization iquiz: Running this code

library(htmlwidgets) x <- "This is a question

  1. 1
  2. 2
  3. 3 "

library(markdown) library(iquiz) iquiz(x)

It gives you a white page

Then I read the source http://prntscr.com/56pnvx

and it seems all is ok...

Maybe a change in one library?

arturochian commented 9 years ago

the 2nd issue is about integration with Rmd document, it gives you a dark page like this

http://prntscr.com/56pok1

I use your example in https://github.com/htmlwidgets/iquiz/blob/master/inst/demo.Rmd

However it gives me the same result. The only difference is you can view the iquiz widget in your demo. However when you use one more time (update Rmd). It doesn't show any widget and the same dark page...

My sessionInfo

R version 3.1.1 (2014-07-10) Platform: x86_64-w64-mingw32/x64 (64-bit)

locale: [1] LC_COLLATE=Spanish_Peru.1252 LC_CTYPE=Spanish_Peru.1252 LC_MONETARY=Spanish_Peru.1252 [4] LC_NUMERIC=C LC_TIME=Spanish_Peru.1252

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

other attached packages: [1] iquiz_1.0 markdown_0.7.4 rMaps_0.1.1 sparkline_1.0 htmlwidgets_0.2.3 [6] devtools_1.5

loaded via a namespace (and not attached): [1] digest_0.6.4 evaluate_0.5.5 formatR_1.0 grid_3.1.1 htmltools_0.2.7
[6] httr_0.5 knitr_1.6.22 lattice_0.20-29 memoise_0.2.1 parallel_3.1.1
[11] plyr_1.8.1 rCharts_0.4.2 RColorBrewer_1.0-5 Rcpp_0.11.2 RCurl_1.95-4.3
[16] rjson_0.2.14 RJSONIO_1.3-0 rmarkdown_0.3.9 stringr_0.6.2 tools_3.1.1
[21] whisker_0.3-2 yaml_2.1.13

ramnathv commented 9 years ago

These widget are still under development and not ready for consumption. Thanks for filing the issue. I will look it over when I work on this widget next time, which may not be for a while.