widgetframe icon indicating copy to clipboard operation
widgetframe copied to clipboard

not rendering in xaringan

Open moldach opened this issue 5 years ago • 1 comments

Really strange issue, I had widgetframe working for rglwidget() earlier and then all of a sudden it stopped working. I've tried the leaflet example from your vignette also. It loads in the viewer but when I knit the document it's not appearing within.

---
title: "Presentation Ninja"
subtitle: "⚔<br/>with xaringan"
author: "Yihui Xie"
date: "2016/12/12 (updated: `r Sys.Date()`)"
output:
  xaringan::moon_reader:
    lib_dir: libs
    nature:
      highlightStyle: github
      highlightLines: true
      countIncrementalSlides: false
---

```{r setup, include=FALSE}
options(htmltools.dir.version = FALSE)
library(widgetframe)
library(leaflet)
suppressPackageStartupMessages(library(widgetframe))
l <- leaflet() %>% addTiles() %>% setView(0,0,2)
frameWidget(l, height = '300')

`> sessionInfo()
R version 3.5.1 (2018-07-02)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)

Matrix products: default

locale:
[1] LC_COLLATE=English_Canada.1252  LC_CTYPE=English_Canada.1252   
[3] LC_MONETARY=English_Canada.1252 LC_NUMERIC=C                   
[5] LC_TIME=English_Canada.1252    

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

other attached packages:
[1] widgetframe_0.3.1 htmlwidgets_1.3  

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.0      rprojroot_1.3-2 digest_0.6.18   later_0.7.5     mime_0.6       
 [6] R6_2.3.0        backports_1.1.2 xtable_1.8-3    magrittr_1.5    evaluate_0.12  
[11] xaringan_0.8.2  promises_1.0.1  leaflet_2.0.2   rmarkdown_1.10  tools_3.5.1    
[16] crosstalk_1.0.0 shiny_1.2.0     xfun_0.4        httpuv_1.4.5    yaml_2.2.0     
[21] compiler_3.5.1  htmltools_0.3.6 knitr_1.20 `

moldach avatar Nov 15 '18 05:11 moldach

There appears to be an error after the Rmarkdown is done knitting in the console:

Not all of the characters in ~/pls-work.Rmd could be encoded using ISO8859-1. To save using a different encoding, choose "File | Save with Encoding..." from the main menu.

Not sure if this is helpful or not?

moldach avatar Nov 15 '18 06:11 moldach