ninja-theme icon indicating copy to clipboard operation
ninja-theme copied to clipboard

yaml error for animated icon

Open shannonpileggi opened this issue 3 years ago • 0 comments

Hi Emi! 👋 Thanks for this awesome theme, I'm having a lot of fun working with it! 🥳

I did try to run kunoichi-theme-example.Rmd as is, and I got the following error with yaml:

output file: rladies-kunoichi.knit.md

Error in yaml::yaml.load(..., eval.expr = TRUE) : 
  Parser error: while parsing a block mapping at line 1, column 1 did not find expected key at line 3, column 74
Calls: <Anonymous> ... parse_yaml_front_matter -> yaml_load -> <Anonymous>
Execution halted

This had the author line as

author: "<br><br>Emi Tanaka &nbsp;`r anicon::faa('twitter', animate='float', rtext='@statsgen')`"

When I remove the floating icon and change the author line to

author: "<br><br>Emi Tanaka"

the slides render without error, and the animated icons work in the rest of the deck.

I've tried to update all of my packages, below is what I am working with. Do you have any ideas on how to troubleshoot to get the animated icons to work in the yaml?

Thank you!

library(xaringan)
library(anicon)
library(icon)
library(rmarkdown)
library(knitr)
library(htmltools)
devtools::session_info()
#> Error in get(genname, envir = envir) : object 'testthat_print' not found
#> - Session info ---------------------------------------------------------------
#>  setting  value                       
#>  version  R version 4.0.5 (2021-03-31)
#>  os       Windows 10 x64              
#>  system   x86_64, mingw32             
#>  ui       RTerm                       
#>  language (EN)                        
#>  collate  English_United States.1252  
#>  ctype    English_United States.1252  
#>  tz       America/New_York            
#>  date     2021-04-11                  
#> 
#> - Packages -------------------------------------------------------------------
#>  package     * version date       lib source                            
#>  anicon      * 0.1.0   2021-04-10 [1] Github (emitanaka/anicon@0b756df) 
#>  assertthat    0.2.1   2019-03-21 [1] CRAN (R 4.0.0)                    
#>  backports     1.1.7   2020-05-13 [1] CRAN (R 4.0.0)                    
#>  callr         3.4.4   2020-09-07 [1] CRAN (R 4.0.2)                    
#>  cli           2.3.1   2021-02-23 [1] CRAN (R 4.0.4)                    
#>  crayon        1.3.4   2017-09-16 [1] CRAN (R 4.0.0)                    
#>  desc          1.2.0   2018-05-01 [1] CRAN (R 4.0.0)                    
#>  devtools      2.3.2   2020-09-18 [1] CRAN (R 4.0.2)                    
#>  digest        0.6.27  2020-10-24 [1] CRAN (R 4.0.5)                    
#>  ellipsis      0.3.1   2020-05-15 [1] CRAN (R 4.0.0)                    
#>  evaluate      0.14    2019-05-28 [1] CRAN (R 4.0.0)                    
#>  fansi         0.4.1   2020-01-08 [1] CRAN (R 4.0.0)                    
#>  fs            1.4.1   2020-04-04 [1] CRAN (R 4.0.0)                    
#>  glue          1.4.2   2020-08-27 [1] CRAN (R 4.0.5)                    
#>  highr         0.8     2019-03-20 [1] CRAN (R 4.0.0)                    
#>  htmltools   * 0.5.1.1 2021-01-22 [1] CRAN (R 4.0.4)                    
#>  icon        * 0.1.0   2020-06-29 [1] Github (ropenscilabs/icon@a5bc1cc)
#>  knitr       * 1.31    2021-01-27 [1] CRAN (R 4.0.3)                    
#>  lifecycle     0.2.0   2020-03-06 [1] CRAN (R 4.0.0)                    
#>  magrittr      2.0.1   2020-11-17 [1] CRAN (R 4.0.4)                    
#>  memoise       1.1.0   2017-04-21 [1] CRAN (R 4.0.0)                    
#>  pillar        1.5.1   2021-03-05 [1] CRAN (R 4.0.4)                    
#>  pkgbuild      1.1.0   2020-07-13 [1] CRAN (R 4.0.2)                    
#>  pkgconfig     2.0.3   2019-09-22 [1] CRAN (R 4.0.0)                    
#>  pkgload       1.1.0   2020-05-29 [1] CRAN (R 4.0.0)                    
#>  prettyunits   1.1.1   2020-01-24 [1] CRAN (R 4.0.0)                    
#>  processx      3.4.2   2020-02-09 [1] CRAN (R 4.0.0)                    
#>  ps            1.3.3   2020-05-08 [1] CRAN (R 4.0.0)                    
#>  purrr         0.3.4   2020-04-17 [1] CRAN (R 4.0.0)                    
#>  R6            2.4.1   2019-11-12 [1] CRAN (R 4.0.0)                    
#>  remotes       2.2.0   2020-07-21 [1] CRAN (R 4.0.2)                    
#>  reprex        1.0.0   2021-01-27 [1] CRAN (R 4.0.3)                    
#>  rlang         0.4.10  2020-12-30 [1] CRAN (R 4.0.3)                    
#>  rmarkdown   * 2.7     2021-02-19 [1] CRAN (R 4.0.5)                    
#>  rprojroot     1.3-2   2018-01-03 [1] CRAN (R 4.0.0)                    
#>  rstudioapi    0.13    2020-11-12 [1] CRAN (R 4.0.4)                    
#>  sessioninfo   1.1.1   2018-11-05 [1] CRAN (R 4.0.0)                    
#>  stringi       1.5.3   2020-09-09 [1] CRAN (R 4.0.3)                    
#>  stringr       1.4.0   2019-02-10 [1] CRAN (R 4.0.0)                    
#>  styler        1.3.2   2020-02-23 [1] CRAN (R 4.0.3)                    
#>  testthat      2.3.2   2020-03-02 [1] CRAN (R 4.0.0)                    
#>  tibble        3.1.0   2021-02-25 [1] CRAN (R 4.0.4)                    
#>  usethis       2.0.1   2021-02-10 [1] CRAN (R 4.0.3)                    
#>  utf8          1.1.4   2018-05-24 [1] CRAN (R 4.0.0)                    
#>  vctrs         0.3.4   2020-08-29 [1] CRAN (R 4.0.2)                    
#>  withr         2.4.1   2021-01-26 [1] CRAN (R 4.0.3)                    
#>  xaringan    * 0.20    2021-03-04 [1] CRAN (R 4.0.5)                    
#>  xfun          0.22    2021-03-11 [1] CRAN (R 4.0.5)                    
#>  yaml          2.2.1   2020-02-01 [1] CRAN (R 4.0.0)                    
#> 
#> [1] C:/Users/Shannon.Pileggi/OneDrive - OneWorkplace/Documents/R/win-library/4.0
#> [2] C:/Program Files/R/R-4.0.5/library

Created on 2021-04-11 by the reprex package (v1.0.0)

shannonpileggi avatar Apr 11 '21 09:04 shannonpileggi