gadenbuie / xaringanExtra

:ferris_wheel: A playground of enhancements and extensions for xaringan slides.
https://pkg.garrickadenbuie.com/xaringanExtra
Other
448 stars 36 forks source link

use_logo not working? #78

Closed ignacio82 closed 3 years ago

ignacio82 commented 3 years ago

Here is a minimum reproducible example:

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

    background-image: url(https://upload.wikimedia.org/wikipedia/commons/b/be/Sharingan_triple.svg)

    ```{r xaringanExtra, echo=FALSE}
    xaringanExtra::use_tile_view()
    xaringanExtra::use_logo(
      image_url = "https://raw.githubusercontent.com/rstudio/hex-stickers/master/PNG/xaringan.png"
    )
???

Image credit: [Wikimedia Commons](https://commons.wikimedia.org/wiki/File:Sharingan_triple.svg)

---
class: center, middle

# xaringan

### /ʃaː.'riŋ.ɡan/

---
class: inverse, center, middle

# Get Started

---

# Test
The following screenshot shows what I get despite having `echo=FALSE` in the code chunk
![image](https://user-images.githubusercontent.com/1833309/105079554-701a9b80-5a44-11eb-9c01-8366bc004f90.png)

This is my `sessionInfo` in case it helps.

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

Matrix products: default BLAS/LAPACK: /usr/lib/x86_64-linux-gnu/openblas-pthread/libopenblasp-r0.3.8.so

locale: [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=en_US.UTF-8
[4] LC_COLLATE=en_US.UTF-8 LC_MONETARY=en_US.UTF-8 LC_MESSAGES=C
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C LC_ADDRESS=C
[10] LC_TELEPHONE=C LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C

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

loaded via a namespace (and not attached): [1] Rcpp_1.0.5 rstudioapi_0.13 knitr_1.30 magrittr_2.0.1
[5] tidyselect_1.1.0 munsell_0.5.0 colorspace_2.0-0 R6_2.5.0
[9] rlang_0.4.10 dplyr_1.0.2 tools_4.0.3 grid_4.0.3
[13] gtable_0.3.0 xfun_0.20 htmltools_0.5.1 ellipsis_0.3.1
[17] yaml_2.2.1 digest_0.6.27 tibble_3.0.4 lifecycle_0.2.0
[21] crayon_1.3.4 purrr_0.3.4 ggplot2_3.3.2 vctrs_0.3.6
[25] glue_1.4.2 evaluate_0.14 rmarkdown_2.6 xaringanExtra_0.2.4 [29] compiler_4.0.3 pillar_1.4.7 generics_0.1.0 scales_1.1.1
[33] lubridate_1.7.9.2 pkgconfig_2.0.3


Am I doing something wrong or is this a bug?
storopoli commented 3 years ago

Same here!

gadenbuie commented 3 years ago

This is very likely to be a duplicate of this issue reported in xaringan: https://github.com/yihui/xaringan/issues/293#issuecomment-763097588

Can you follow the instructions there and report back if you continue to have problems?

storopoli commented 3 years ago

@gadenbuie options(htmltools.preserve.raw = FALSE) solved for me. Thanks!

ignacio82 commented 3 years ago

thanks, the development version of xaringan also fixes this issue.