Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: fig.alt as a chunk option #1867

Closed
3 tasks done
mdogucu opened this issue Jul 20, 2020 · 14 comments
Closed
3 tasks done

Feature request: fig.alt as a chunk option #1867

mdogucu opened this issue Jul 20, 2020 · 14 comments

Comments

@mdogucu
Copy link

mdogucu commented Jul 20, 2020

In addition to using ![alt text][id] to write alt text it would be very useful to have fig.alt option for code chunks that could write the alt text for a figure. Unfortunately, with the current state of things, the figure caption and alt text is the same when used in code chunk. Thus, when using a screen reader only figure caption is read by the screen reader. However, for visually impaired readers, often further description of an image is needed. An example of what I have on my mind is provided below with modifications to the code provided in the R Markdown book:

```{r mtcars, fig.cap = "Another amazing plot", fig.alt = "The scatter plot has hp on the x axis and mpg on the y axis. The points show a negative trend but the plot does not include a line of best fit."}
plot(mpg ~ hp, mtcars)
```

By filing an issue to this repo, I promise that

  • I have fully read the issue guide at https://yihui.org/issue/.
  • I have provided the necessary information about my issue.
    • If I'm asking a question, I have already asked it on Stack Overflow or RStudio Community, waited for at least 24 hours, and included a link to my question there.
    • If I'm filing a bug report, I have included a minimal, self-contained, and reproducible example, and have also included xfun::session_info('rmarkdown'). I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version: remotes::install_github('rstudio/rmarkdown').
    • If I have posted the same issue elsewhere, I have also mentioned it in this issue.
  • I have learned the Github Markdown syntax, and formatted my issue correctly.

I understand that my issue may be closed if I don't fulfill my promises.

@cderv
Copy link
Collaborator

cderv commented Jul 20, 2020

About this topic, here is a chapter about accessibility in the next Rmarkdown book: https://bookdown.org/yihui/rmarkdown-cookbook/html-accessibility.html Your insights could be useful as we are not expert on this.
It comes from a discussion in rstudio/rmarkdown-cookbook#242

And yes currently, the caption and alt text are the same, and you can only have the alt text and not show the caption. But I don't think they can be different right now.
This is a feature request for knitr to add this chunk option. I think it could be a good idea and this seems important

@AmeliaMN
Copy link

Just here to put in another voice of support for this feature! Accessibility is important, so it should be easy for users to make things accessible. When I was working on my useR! talk I was trying to do the same thing. I think a chunk option is the way to go, and was surprised to see it didn't exist already.

@cderv
Copy link
Collaborator

cderv commented Jul 20, 2020

I just opened an issue in knitr for adding a fig.alt chunk option. This must be done there and it is knitr code that we need to make this feasible.

@jooyoungseo
Copy link

jooyoungseo commented Oct 25, 2020

Yes, let me vote for this feature request as an actual screen-reader user.

Currently, there is no way for users to create alt text and figure caption separately for graphs.

While figure caption is used for a relatively concise figure title, image alt text is intended to deliver more descriptive text-based information for assistive technologies (e.g., screen readers).

In the following example, you may understand the usage of auto-generated alt text, which should be different from fig.cap.

Ideally, I also want to give the figure a concise fig.cap like "Bar chart of clas" while attaching the alt text value to img$alt.

```{r g-alt, fig.cap = caption}
    # Make a simple graph
    library(tidyverse)

    g <- mpg %>%
      ggplot(aes(class)) +
      geom_bar()

    # Create alt text using BrailleR package
    if (!require(BrailleR)) {
      remotes::install_github("ajrgodfrey/BrailleR")
    }

    library(BrailleR)
    #;-) The BrailleR.View,  option is set to FALSE.
    #;-) 
    #;-) Attaching package: 'BrailleR'
    #;-) The following objects are masked from 'package:ggplot2':
    #;-) 
    #;-)     xlab, ylab
    #;-) The following objects are masked from 'package:graphics':
    #;-) 
    #;-)     boxplot, hist
    #;-) The following object is masked from 'package:utils':
    #;-) 
    #;-)     history
    #;-) The following objects are masked from 'package:base':
    #;-) 
    #;-)     grep, gsub

    caption <- paste(capture.output(BrailleR::VI(g)), collapse = " ")
    g
```

This is an untitled chart with no subtitle or caption. It has x-axis ‘class’ with labels . It has y-axis ‘count’ with labels . The chart is a bar chart containing 7 vertical bars. Bar 1 is centered horizontally at 2seater, and spans vertically from 0 to 5. Bar 2 is centered horizontally at compact, and spans vertically from 0 to 47. Bar 3 is centered horizontally at midsize, and spans vertically from 0 to 41. Bar 4 is centered horizontally at minivan, and spans vertically from 0 to 11. Bar 5 is centered horizontally at pickup, and spans vertically from 0 to 33. Bar 6 is centered horizontally at subcompact, and spans vertically from 0 to 35. Bar 7 is centered horizontally at suv, and spans vertically from 0 to 62.

Result

![This is an untitled chart with no subtitle or caption. It has x-axis ‘class’ with labels . It has y-axis ‘count’ with labels . The chart is a bar chart containing 7 vertical bars. Bar 1 is centered horizontally at 2seater, and spans vertically from 0 to 5. Bar 2 is centered horizontally at compact, and spans vertically from 0 to 47. Bar 3 is centered horizontally at midsize, and spans vertically from 0 to 41. Bar 4 is centered horizontally at minivan, and spans vertically from 0 to 11. Bar 5 is centered horizontally at pickup, and spans vertically from 0 to 33. Bar 6 is centered horizontally at subcompact, and spans vertically from 0 to 35. Bar 7 is centered horizontally at suv, and spans vertically from 0 to 62.](https://i.imgur.com/t47e9BZ.png)

Session info

Standard output and standard error `C:/test/g-alt/g-alt_std_out_err.txt`
Session info
sessioninfo::session_info()
#;-) - Session info ---------------------------------------------------------------
#;-)  setting  value                       
#;-)  version  R version 4.0.3 (2020-10-10)
#;-)  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     2020-10-25                  
#;-) 
#;-) - Packages -------------------------------------------------------------------
#;-)  package      * version    date       lib source                              
#;-)  assertthat     0.2.1      2019-03-21 [1] CRAN (R 4.0.3)                      
#;-)  backports      1.1.10     2020-09-15 [1] CRAN (R 4.0.3)                      
#;-)  blob           1.2.1      2020-01-20 [1] CRAN (R 4.0.3)                      
#;-)  BrailleR     * 0.31.0     2020-10-24 [1] Github (ajrgodfrey/BrailleR@59d0949)
#;-)  broom          0.7.2.9000 2020-10-25 [1] Github (tidymodels/broom@c0ae258)   
#;-)  callr          3.5.1      2020-10-13 [1] CRAN (R 4.0.3)                      
#;-)  cellranger     1.1.0      2016-07-27 [1] CRAN (R 4.0.3)                      
#;-)  cli            2.1.0      2020-10-12 [1] CRAN (R 4.0.3)                      
#;-)  colorspace     1.4-1      2019-03-18 [1] CRAN (R 4.0.3)                      
#;-)  crayon         1.3.4      2017-09-16 [1] CRAN (R 4.0.3)                      
#;-)  curl           4.3        2019-12-02 [1] CRAN (R 4.0.3)                      
#;-)  DBI            1.1.0      2019-12-15 [1] CRAN (R 4.0.3)                      
#;-)  dbplyr         1.4.4      2020-05-27 [1] CRAN (R 4.0.3)                      
#;-)  desc           1.2.0      2018-05-01 [1] CRAN (R 4.0.3)                      
#;-)  devtools       2.3.2      2020-09-18 [1] CRAN (R 4.0.3)                      
#;-)  digest         0.6.27     2020-10-24 [1] CRAN (R 4.0.3)                      
#;-)  dplyr        * 1.0.2      2020-08-18 [1] CRAN (R 4.0.3)                      
#;-)  ellipsis       0.3.1      2020-05-15 [1] CRAN (R 4.0.3)                      
#;-)  evaluate       0.14       2019-05-28 [1] CRAN (R 4.0.3)                      
#;-)  extrafont      0.17       2014-12-08 [1] CRAN (R 4.0.3)                      
#;-)  extrafontdb    1.0        2012-06-11 [1] CRAN (R 4.0.3)                      
#;-)  fansi          0.4.1      2020-01-08 [1] CRAN (R 4.0.3)                      
#;-)  farver         2.0.3      2020-01-16 [1] CRAN (R 4.0.3)                      
#;-)  forcats      * 0.5.0      2020-03-01 [1] CRAN (R 4.0.3)                      
#;-)  fs             1.5.0      2020-07-31 [1] CRAN (R 4.0.3)                      
#;-)  generics       0.0.2      2018-11-29 [1] CRAN (R 4.0.3)                      
#;-)  ggplot2      * 3.3.2      2020-06-19 [1] CRAN (R 4.0.3)                      
#;-)  glue           1.4.2      2020-08-27 [1] CRAN (R 4.0.3)                      
#;-)  gridGraphics   0.5-0      2020-02-25 [1] CRAN (R 4.0.3)                      
#;-)  gridSVG        1.7-2      2020-04-28 [1] CRAN (R 4.0.3)                      
#;-)  gtable         0.3.0      2019-03-25 [1] CRAN (R 4.0.3)                      
#;-)  haven          2.3.1      2020-06-01 [1] CRAN (R 4.0.3)                      
#;-)  highr          0.8        2019-03-20 [1] CRAN (R 4.0.3)                      
#;-)  hms            0.5.3      2020-01-08 [1] CRAN (R 4.0.3)                      
#;-)  htmltools      0.5.0.9002 2020-10-25 [1] Github (rstudio/htmltools@079503c)  
#;-)  httr           1.4.2      2020-07-20 [1] CRAN (R 4.0.3)                      
#;-)  hunspell       3.0        2018-12-15 [1] CRAN (R 4.0.3)                      
#;-)  jsonlite       1.7.1      2020-09-07 [1] CRAN (R 4.0.3)                      
#;-)  knitr          1.30.2     2020-10-25 [1] Github (yihui/knitr@f409cd9)        
#;-)  labeling       0.4.2      2020-10-20 [1] CRAN (R 4.0.3)                      
#;-)  lattice        0.20-41    2020-04-02 [1] CRAN (R 4.0.3)                      
#;-)  lifecycle      0.2.0      2020-03-06 [1] CRAN (R 4.0.3)                      
#;-)  lubridate      1.7.9      2020-06-08 [1] CRAN (R 4.0.3)                      
#;-)  magrittr       1.5        2014-11-22 [1] CRAN (R 4.0.3)                      
#;-)  Matrix         1.2-18     2019-11-27 [1] CRAN (R 4.0.3)                      
#;-)  memoise        1.1.0      2017-04-21 [1] CRAN (R 4.0.3)                      
#;-)  mime           0.9        2020-02-04 [1] CRAN (R 4.0.3)                      
#;-)  modelr         0.1.8      2020-05-19 [1] CRAN (R 4.0.3)                      
#;-)  moments        0.14       2015-01-05 [1] CRAN (R 4.0.3)                      
#;-)  munsell        0.5.0      2018-06-12 [1] CRAN (R 4.0.3)                      
#;-)  nortest        1.0-4      2015-07-30 [1] CRAN (R 4.0.3)                      
#;-)  pillar         1.4.6      2020-07-10 [1] CRAN (R 4.0.3)                      
#;-)  pkgbuild       1.1.0      2020-07-13 [1] CRAN (R 4.0.3)                      
#;-)  pkgconfig      2.0.3      2019-09-22 [1] CRAN (R 4.0.3)                      
#;-)  pkgload        1.1.0      2020-05-29 [1] CRAN (R 4.0.3)                      
#;-)  prettyunits    1.1.1      2020-01-24 [1] CRAN (R 4.0.3)                      
#;-)  processx       3.4.4      2020-09-03 [1] CRAN (R 4.0.3)                      
#;-)  ps             1.4.0      2020-10-07 [1] CRAN (R 4.0.3)                      
#;-)  purrr        * 0.3.4      2020-04-17 [1] CRAN (R 4.0.3)                      
#;-)  R.cache        0.14.0     2019-12-06 [1] CRAN (R 4.0.3)                      
#;-)  R.methodsS3    1.8.1      2020-08-26 [1] CRAN (R 4.0.3)                      
#;-)  R.oo           1.24.0     2020-08-26 [1] CRAN (R 4.0.3)                      
#;-)  R.utils        2.10.1     2020-08-26 [1] CRAN (R 4.0.3)                      
#;-)  R6             2.4.1      2019-11-12 [1] CRAN (R 4.0.3)                      
#;-)  Rcpp           1.0.5      2020-07-06 [1] CRAN (R 4.0.3)                      
#;-)  readr        * 1.4.0      2020-10-05 [1] CRAN (R 4.0.3)                      
#;-)  readxl         1.3.1      2019-03-13 [1] CRAN (R 4.0.3)                      
#;-)  rematch2       2.1.2      2020-05-01 [1] CRAN (R 4.0.3)                      
#;-)  remotes      * 2.2.0      2020-07-21 [1] CRAN (R 4.0.3)                      
#;-)  reprex         0.3.0.9001 2020-10-25 [1] Github (tidyverse/reprex@d3fc4b8)   
#;-)  reticulate     1.17       2020-10-21 [1] CRAN (R 4.0.3)                      
#;-)  rlang          0.4.8      2020-10-08 [1] CRAN (R 4.0.3)                      
#;-)  rmarkdown      2.5.2      2020-10-25 [1] Github (rstudio/rmarkdown@8b66a73)  
#;-)  roloc          0.1-1      2018-07-30 [1] CRAN (R 4.0.3)                      
#;-)  rolocISCCNBS   0.1        2018-08-02 [1] CRAN (R 4.0.3)                      
#;-)  rprojroot      1.3-2      2018-01-03 [1] CRAN (R 4.0.3)                      
#;-)  Rttf2pt1       1.3.8      2020-01-10 [1] CRAN (R 4.0.3)                      
#;-)  rvest          0.3.6      2020-07-25 [1] CRAN (R 4.0.3)                      
#;-)  scales         1.1.1      2020-05-11 [1] CRAN (R 4.0.3)                      
#;-)  sessioninfo    1.1.1      2018-11-05 [1] CRAN (R 4.0.3)                      
#;-)  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.3)                      
#;-)  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.3)                      
#;-)  tibble       * 3.0.4      2020-10-12 [1] CRAN (R 4.0.3)                      
#;-)  tidyr        * 1.1.2      2020-08-27 [1] CRAN (R 4.0.3)                      
#;-)  tidyselect     1.1.0      2020-05-11 [1] CRAN (R 4.0.3)                      
#;-)  tidyverse    * 1.3.0      2019-11-21 [1] CRAN (R 4.0.3)                      
#;-)  usethis        1.6.3      2020-09-17 [1] CRAN (R 4.0.3)                      
#;-)  vctrs          0.3.4      2020-08-29 [1] CRAN (R 4.0.3)                      
#;-)  whisker        0.4        2019-08-28 [1] CRAN (R 4.0.3)                      
#;-)  withr          2.3.0      2020-09-22 [1] CRAN (R 4.0.3)                      
#;-)  xfun           0.18       2020-09-29 [1] CRAN (R 4.0.3)                      
#;-)  XML            3.99-0.5   2020-07-23 [1] CRAN (R 4.0.3)                      
#;-)  xml2           1.3.2      2020-04-23 [1] CRAN (R 4.0.3)                      
#;-)  xtable         1.8-4      2019-04-21 [1] CRAN (R 4.0.3)                      
#;-)  yaml           2.2.1      2020-02-01 [1] CRAN (R 4.0.3)                      
#;-) 
#;-) [1] C:/Program Files/R/R-4.0.3/library
Standard output and standard error `C:/test/g-alt/g-alt_std_out_err.txt`
Session info
sessioninfo::session_info()
#;-) - Session info ---------------------------------------------------------------
#;-)  setting  value                       
#;-)  version  R version 4.0.3 (2020-10-10)
#;-)  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     2020-10-25                  
#;-) 
#;-) - Packages -------------------------------------------------------------------
#;-)  package      * version    date       lib source                              
#;-)  assertthat     0.2.1      2019-03-21 [1] CRAN (R 4.0.3)                      
#;-)  backports      1.1.10     2020-09-15 [1] CRAN (R 4.0.3)                      
#;-)  blob           1.2.1      2020-01-20 [1] CRAN (R 4.0.3)                      
#;-)  BrailleR     * 0.31.0     2020-10-24 [1] Github (ajrgodfrey/BrailleR@59d0949)
#;-)  broom          0.7.2.9000 2020-10-25 [1] Github (tidymodels/broom@c0ae258)   
#;-)  callr          3.5.1      2020-10-13 [1] CRAN (R 4.0.3)                      
#;-)  cellranger     1.1.0      2016-07-27 [1] CRAN (R 4.0.3)                      
#;-)  cli            2.1.0      2020-10-12 [1] CRAN (R 4.0.3)                      
#;-)  colorspace     1.4-1      2019-03-18 [1] CRAN (R 4.0.3)                      
#;-)  crayon         1.3.4      2017-09-16 [1] CRAN (R 4.0.3)                      
#;-)  curl           4.3        2019-12-02 [1] CRAN (R 4.0.3)                      
#;-)  DBI            1.1.0      2019-12-15 [1] CRAN (R 4.0.3)                      
#;-)  dbplyr         1.4.4      2020-05-27 [1] CRAN (R 4.0.3)                      
#;-)  desc           1.2.0      2018-05-01 [1] CRAN (R 4.0.3)                      
#;-)  devtools       2.3.2      2020-09-18 [1] CRAN (R 4.0.3)                      
#;-)  digest         0.6.27     2020-10-24 [1] CRAN (R 4.0.3)                      
#;-)  dplyr        * 1.0.2      2020-08-18 [1] CRAN (R 4.0.3)                      
#;-)  ellipsis       0.3.1      2020-05-15 [1] CRAN (R 4.0.3)                      
#;-)  evaluate       0.14       2019-05-28 [1] CRAN (R 4.0.3)                      
#;-)  extrafont      0.17       2014-12-08 [1] CRAN (R 4.0.3)                      
#;-)  extrafontdb    1.0        2012-06-11 [1] CRAN (R 4.0.3)                      
#;-)  fansi          0.4.1      2020-01-08 [1] CRAN (R 4.0.3)                      
#;-)  farver         2.0.3      2020-01-16 [1] CRAN (R 4.0.3)                      
#;-)  forcats      * 0.5.0      2020-03-01 [1] CRAN (R 4.0.3)                      
#;-)  fs             1.5.0      2020-07-31 [1] CRAN (R 4.0.3)                      
#;-)  generics       0.0.2      2018-11-29 [1] CRAN (R 4.0.3)                      
#;-)  ggplot2      * 3.3.2      2020-06-19 [1] CRAN (R 4.0.3)                      
#;-)  glue           1.4.2      2020-08-27 [1] CRAN (R 4.0.3)                      
#;-)  gridGraphics   0.5-0      2020-02-25 [1] CRAN (R 4.0.3)                      
#;-)  gridSVG        1.7-2      2020-04-28 [1] CRAN (R 4.0.3)                      
#;-)  gtable         0.3.0      2019-03-25 [1] CRAN (R 4.0.3)                      
#;-)  haven          2.3.1      2020-06-01 [1] CRAN (R 4.0.3)                      
#;-)  highr          0.8        2019-03-20 [1] CRAN (R 4.0.3)                      
#;-)  hms            0.5.3      2020-01-08 [1] CRAN (R 4.0.3)                      
#;-)  htmltools      0.5.0.9002 2020-10-25 [1] Github (rstudio/htmltools@079503c)  
#;-)  httr           1.4.2      2020-07-20 [1] CRAN (R 4.0.3)                      
#;-)  hunspell       3.0        2018-12-15 [1] CRAN (R 4.0.3)                      
#;-)  jsonlite       1.7.1      2020-09-07 [1] CRAN (R 4.0.3)                      
#;-)  knitr          1.30.2     2020-10-25 [1] Github (yihui/knitr@f409cd9)        
#;-)  labeling       0.4.2      2020-10-20 [1] CRAN (R 4.0.3)                      
#;-)  lattice        0.20-41    2020-04-02 [1] CRAN (R 4.0.3)                      
#;-)  lifecycle      0.2.0      2020-03-06 [1] CRAN (R 4.0.3)                      
#;-)  lubridate      1.7.9      2020-06-08 [1] CRAN (R 4.0.3)                      
#;-)  magrittr       1.5        2014-11-22 [1] CRAN (R 4.0.3)                      
#;-)  Matrix         1.2-18     2019-11-27 [1] CRAN (R 4.0.3)                      
#;-)  memoise        1.1.0      2017-04-21 [1] CRAN (R 4.0.3)                      
#;-)  mime           0.9        2020-02-04 [1] CRAN (R 4.0.3)                      
#;-)  modelr         0.1.8      2020-05-19 [1] CRAN (R 4.0.3)                      
#;-)  moments        0.14       2015-01-05 [1] CRAN (R 4.0.3)                      
#;-)  munsell        0.5.0      2018-06-12 [1] CRAN (R 4.0.3)                      
#;-)  nortest        1.0-4      2015-07-30 [1] CRAN (R 4.0.3)                      
#;-)  pillar         1.4.6      2020-07-10 [1] CRAN (R 4.0.3)                      
#;-)  pkgbuild       1.1.0      2020-07-13 [1] CRAN (R 4.0.3)                      
#;-)  pkgconfig      2.0.3      2019-09-22 [1] CRAN (R 4.0.3)                      
#;-)  pkgload        1.1.0      2020-05-29 [1] CRAN (R 4.0.3)                      
#;-)  prettyunits    1.1.1      2020-01-24 [1] CRAN (R 4.0.3)                      
#;-)  processx       3.4.4      2020-09-03 [1] CRAN (R 4.0.3)                      
#;-)  ps             1.4.0      2020-10-07 [1] CRAN (R 4.0.3)                      
#;-)  purrr        * 0.3.4      2020-04-17 [1] CRAN (R 4.0.3)                      
#;-)  R.cache        0.14.0     2019-12-06 [1] CRAN (R 4.0.3)                      
#;-)  R.methodsS3    1.8.1      2020-08-26 [1] CRAN (R 4.0.3)                      
#;-)  R.oo           1.24.0     2020-08-26 [1] CRAN (R 4.0.3)                      
#;-)  R.utils        2.10.1     2020-08-26 [1] CRAN (R 4.0.3)                      
#;-)  R6             2.4.1      2019-11-12 [1] CRAN (R 4.0.3)                      
#;-)  Rcpp           1.0.5      2020-07-06 [1] CRAN (R 4.0.3)                      
#;-)  readr        * 1.4.0      2020-10-05 [1] CRAN (R 4.0.3)                      
#;-)  readxl         1.3.1      2019-03-13 [1] CRAN (R 4.0.3)                      
#;-)  rematch2       2.1.2      2020-05-01 [1] CRAN (R 4.0.3)                      
#;-)  remotes      * 2.2.0      2020-07-21 [1] CRAN (R 4.0.3)                      
#;-)  reprex         0.3.0.9001 2020-10-25 [1] Github (tidyverse/reprex@d3fc4b8)   
#;-)  reticulate     1.17       2020-10-21 [1] CRAN (R 4.0.3)                      
#;-)  rlang          0.4.8      2020-10-08 [1] CRAN (R 4.0.3)                      
#;-)  rmarkdown      2.5.2      2020-10-25 [1] Github (rstudio/rmarkdown@8b66a73)  
#;-)  roloc          0.1-1      2018-07-30 [1] CRAN (R 4.0.3)                      
#;-)  rolocISCCNBS   0.1        2018-08-02 [1] CRAN (R 4.0.3)                      
#;-)  rprojroot      1.3-2      2018-01-03 [1] CRAN (R 4.0.3)                      
#;-)  Rttf2pt1       1.3.8      2020-01-10 [1] CRAN (R 4.0.3)                      
#;-)  rvest          0.3.6      2020-07-25 [1] CRAN (R 4.0.3)                      
#;-)  scales         1.1.1      2020-05-11 [1] CRAN (R 4.0.3)                      
#;-)  sessioninfo    1.1.1      2018-11-05 [1] CRAN (R 4.0.3)                      
#;-)  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.3)                      
#;-)  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.3)                      
#;-)  tibble       * 3.0.4      2020-10-12 [1] CRAN (R 4.0.3)                      
#;-)  tidyr        * 1.1.2      2020-08-27 [1] CRAN (R 4.0.3)                      
#;-)  tidyselect     1.1.0      2020-05-11 [1] CRAN (R 4.0.3)                      
#;-)  tidyverse    * 1.3.0      2019-11-21 [1] CRAN (R 4.0.3)                      
#;-)  usethis        1.6.3      2020-09-17 [1] CRAN (R 4.0.3)                      
#;-)  vctrs          0.3.4      2020-08-29 [1] CRAN (R 4.0.3)                      
#;-)  whisker        0.4        2019-08-28 [1] CRAN (R 4.0.3)                      
#;-)  withr          2.3.0      2020-09-22 [1] CRAN (R 4.0.3)                      
#;-)  xfun           0.18       2020-09-29 [1] CRAN (R 4.0.3)                      
#;-)  XML            3.99-0.5   2020-07-23 [1] CRAN (R 4.0.3)                      
#;-)  xml2           1.3.2      2020-04-23 [1] CRAN (R 4.0.3)                      
#;-)  xtable         1.8-4      2019-04-21 [1] CRAN (R 4.0.3)                      
#;-)  yaml           2.2.1      2020-02-01 [1] CRAN (R 4.0.3)                      
#;-) 
#;-) [1] C:/Program Files/R/R-4.0.3/library
Standard output and standard error `C:/test/g-alt/g-alt_std_out_err.txt`
Session info
sessioninfo::session_info()
#;-) - Session info ---------------------------------------------------------------
#;-)  setting  value                       
#;-)  version  R version 4.0.3 (2020-10-10)
#;-)  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     2020-10-25                  
#;-) 
#;-) - Packages -------------------------------------------------------------------
#;-)  package      * version    date       lib source                              
#;-)  assertthat     0.2.1      2019-03-21 [1] CRAN (R 4.0.3)                      
#;-)  backports      1.1.10     2020-09-15 [1] CRAN (R 4.0.3)                      
#;-)  blob           1.2.1      2020-01-20 [1] CRAN (R 4.0.3)                      
#;-)  BrailleR     * 0.31.0     2020-10-24 [1] Github (ajrgodfrey/BrailleR@59d0949)
#;-)  broom          0.7.2.9000 2020-10-25 [1] Github (tidymodels/broom@c0ae258)   
#;-)  callr          3.5.1      2020-10-13 [1] CRAN (R 4.0.3)                      
#;-)  cellranger     1.1.0      2016-07-27 [1] CRAN (R 4.0.3)                      
#;-)  cli            2.1.0      2020-10-12 [1] CRAN (R 4.0.3)                      
#;-)  colorspace     1.4-1      2019-03-18 [1] CRAN (R 4.0.3)                      
#;-)  crayon         1.3.4      2017-09-16 [1] CRAN (R 4.0.3)                      
#;-)  curl           4.3        2019-12-02 [1] CRAN (R 4.0.3)                      
#;-)  DBI            1.1.0      2019-12-15 [1] CRAN (R 4.0.3)                      
#;-)  dbplyr         1.4.4      2020-05-27 [1] CRAN (R 4.0.3)                      
#;-)  desc           1.2.0      2018-05-01 [1] CRAN (R 4.0.3)                      
#;-)  devtools       2.3.2      2020-09-18 [1] CRAN (R 4.0.3)                      
#;-)  digest         0.6.27     2020-10-24 [1] CRAN (R 4.0.3)                      
#;-)  dplyr        * 1.0.2      2020-08-18 [1] CRAN (R 4.0.3)                      
#;-)  ellipsis       0.3.1      2020-05-15 [1] CRAN (R 4.0.3)                      
#;-)  evaluate       0.14       2019-05-28 [1] CRAN (R 4.0.3)                      
#;-)  extrafont      0.17       2014-12-08 [1] CRAN (R 4.0.3)                      
#;-)  extrafontdb    1.0        2012-06-11 [1] CRAN (R 4.0.3)                      
#;-)  fansi          0.4.1      2020-01-08 [1] CRAN (R 4.0.3)                      
#;-)  farver         2.0.3      2020-01-16 [1] CRAN (R 4.0.3)                      
#;-)  forcats      * 0.5.0      2020-03-01 [1] CRAN (R 4.0.3)                      
#;-)  fs             1.5.0      2020-07-31 [1] CRAN (R 4.0.3)                      
#;-)  generics       0.0.2      2018-11-29 [1] CRAN (R 4.0.3)                      
#;-)  ggplot2      * 3.3.2      2020-06-19 [1] CRAN (R 4.0.3)                      
#;-)  glue           1.4.2      2020-08-27 [1] CRAN (R 4.0.3)                      
#;-)  gridGraphics   0.5-0      2020-02-25 [1] CRAN (R 4.0.3)                      
#;-)  gridSVG        1.7-2      2020-04-28 [1] CRAN (R 4.0.3)                      
#;-)  gtable         0.3.0      2019-03-25 [1] CRAN (R 4.0.3)                      
#;-)  haven          2.3.1      2020-06-01 [1] CRAN (R 4.0.3)                      
#;-)  highr          0.8        2019-03-20 [1] CRAN (R 4.0.3)                      
#;-)  hms            0.5.3      2020-01-08 [1] CRAN (R 4.0.3)                      
#;-)  htmltools      0.5.0.9002 2020-10-25 [1] Github (rstudio/htmltools@079503c)  
#;-)  httr           1.4.2      2020-07-20 [1] CRAN (R 4.0.3)                      
#;-)  hunspell       3.0        2018-12-15 [1] CRAN (R 4.0.3)                      
#;-)  jsonlite       1.7.1      2020-09-07 [1] CRAN (R 4.0.3)                      
#;-)  knitr          1.30.2     2020-10-25 [1] Github (yihui/knitr@f409cd9)        
#;-)  labeling       0.4.2      2020-10-20 [1] CRAN (R 4.0.3)                      
#;-)  lattice        0.20-41    2020-04-02 [1] CRAN (R 4.0.3)                      
#;-)  lifecycle      0.2.0      2020-03-06 [1] CRAN (R 4.0.3)                      
#;-)  lubridate      1.7.9      2020-06-08 [1] CRAN (R 4.0.3)                      
#;-)  magrittr       1.5        2014-11-22 [1] CRAN (R 4.0.3)                      
#;-)  Matrix         1.2-18     2019-11-27 [1] CRAN (R 4.0.3)                      
#;-)  memoise        1.1.0      2017-04-21 [1] CRAN (R 4.0.3)                      
#;-)  mime           0.9        2020-02-04 [1] CRAN (R 4.0.3)                      
#;-)  modelr         0.1.8      2020-05-19 [1] CRAN (R 4.0.3)                      
#;-)  moments        0.14       2015-01-05 [1] CRAN (R 4.0.3)                      
#;-)  munsell        0.5.0      2018-06-12 [1] CRAN (R 4.0.3)                      
#;-)  nortest        1.0-4      2015-07-30 [1] CRAN (R 4.0.3)                      
#;-)  pillar         1.4.6      2020-07-10 [1] CRAN (R 4.0.3)                      
#;-)  pkgbuild       1.1.0      2020-07-13 [1] CRAN (R 4.0.3)                      
#;-)  pkgconfig      2.0.3      2019-09-22 [1] CRAN (R 4.0.3)                      
#;-)  pkgload        1.1.0      2020-05-29 [1] CRAN (R 4.0.3)                      
#;-)  prettyunits    1.1.1      2020-01-24 [1] CRAN (R 4.0.3)                      
#;-)  processx       3.4.4      2020-09-03 [1] CRAN (R 4.0.3)                      
#;-)  ps             1.4.0      2020-10-07 [1] CRAN (R 4.0.3)                      
#;-)  purrr        * 0.3.4      2020-04-17 [1] CRAN (R 4.0.3)                      
#;-)  R.cache        0.14.0     2019-12-06 [1] CRAN (R 4.0.3)                      
#;-)  R.methodsS3    1.8.1      2020-08-26 [1] CRAN (R 4.0.3)                      
#;-)  R.oo           1.24.0     2020-08-26 [1] CRAN (R 4.0.3)                      
#;-)  R.utils        2.10.1     2020-08-26 [1] CRAN (R 4.0.3)                      
#;-)  R6             2.4.1      2019-11-12 [1] CRAN (R 4.0.3)                      
#;-)  Rcpp           1.0.5      2020-07-06 [1] CRAN (R 4.0.3)                      
#;-)  readr        * 1.4.0      2020-10-05 [1] CRAN (R 4.0.3)                      
#;-)  readxl         1.3.1      2019-03-13 [1] CRAN (R 4.0.3)                      
#;-)  rematch2       2.1.2      2020-05-01 [1] CRAN (R 4.0.3)                      
#;-)  remotes      * 2.2.0      2020-07-21 [1] CRAN (R 4.0.3)                      
#;-)  reprex         0.3.0.9001 2020-10-25 [1] Github (tidyverse/reprex@d3fc4b8)   
#;-)  reticulate     1.17       2020-10-21 [1] CRAN (R 4.0.3)                      
#;-)  rlang          0.4.8      2020-10-08 [1] CRAN (R 4.0.3)                      
#;-)  rmarkdown      2.5.2      2020-10-25 [1] Github (rstudio/rmarkdown@8b66a73)  
#;-)  roloc          0.1-1      2018-07-30 [1] CRAN (R 4.0.3)                      
#;-)  rolocISCCNBS   0.1        2018-08-02 [1] CRAN (R 4.0.3)                      
#;-)  rprojroot      1.3-2      2018-01-03 [1] CRAN (R 4.0.3)                      
#;-)  Rttf2pt1       1.3.8      2020-01-10 [1] CRAN (R 4.0.3)                      
#;-)  rvest          0.3.6      2020-07-25 [1] CRAN (R 4.0.3)                      
#;-)  scales         1.1.1      2020-05-11 [1] CRAN (R 4.0.3)                      
#;-)  sessioninfo    1.1.1      2018-11-05 [1] CRAN (R 4.0.3)                      
#;-)  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.3)                      
#;-)  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.3)                      
#;-)  tibble       * 3.0.4      2020-10-12 [1] CRAN (R 4.0.3)                      
#;-)  tidyr        * 1.1.2      2020-08-27 [1] CRAN (R 4.0.3)                      
#;-)  tidyselect     1.1.0      2020-05-11 [1] CRAN (R 4.0.3)                      
#;-)  tidyverse    * 1.3.0      2019-11-21 [1] CRAN (R 4.0.3)                      
#;-)  usethis        1.6.3      2020-09-17 [1] CRAN (R 4.0.3)                      
#;-)  vctrs          0.3.4      2020-08-29 [1] CRAN (R 4.0.3)                      
#;-)  whisker        0.4        2019-08-28 [1] CRAN (R 4.0.3)                      
#;-)  withr          2.3.0      2020-09-22 [1] CRAN (R 4.0.3)                      
#;-)  xfun           0.18       2020-09-29 [1] CRAN (R 4.0.3)                      
#;-)  XML            3.99-0.5   2020-07-23 [1] CRAN (R 4.0.3)                      
#;-)  xml2           1.3.2      2020-04-23 [1] CRAN (R 4.0.3)                      
#;-)  xtable         1.8-4      2019-04-21 [1] CRAN (R 4.0.3)                      
#;-)  yaml           2.2.1      2020-02-01 [1] CRAN (R 4.0.3)                      
#;-) 
#;-) [1] C:/Program Files/R/R-4.0.3/library
Standard output and standard error `C:/test/g-alt/g-alt_std_out_err.txt`
Session info
sessioninfo::session_info()
#;-) - Session info ---------------------------------------------------------------
#;-)  setting  value                       
#;-)  version  R version 4.0.3 (2020-10-10)
#;-)  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     2020-10-25                  
#;-) 
#;-) - Packages -------------------------------------------------------------------
#;-)  package      * version    date       lib source                              
#;-)  assertthat     0.2.1      2019-03-21 [1] CRAN (R 4.0.3)                      
#;-)  backports      1.1.10     2020-09-15 [1] CRAN (R 4.0.3)                      
#;-)  blob           1.2.1      2020-01-20 [1] CRAN (R 4.0.3)                      
#;-)  BrailleR     * 0.31.0     2020-10-24 [1] Github (ajrgodfrey/BrailleR@59d0949)
#;-)  broom          0.7.2.9000 2020-10-25 [1] Github (tidymodels/broom@c0ae258)   
#;-)  callr          3.5.1      2020-10-13 [1] CRAN (R 4.0.3)                      
#;-)  cellranger     1.1.0      2016-07-27 [1] CRAN (R 4.0.3)                      
#;-)  cli            2.1.0      2020-10-12 [1] CRAN (R 4.0.3)                      
#;-)  colorspace     1.4-1      2019-03-18 [1] CRAN (R 4.0.3)                      
#;-)  crayon         1.3.4      2017-09-16 [1] CRAN (R 4.0.3)                      
#;-)  curl           4.3        2019-12-02 [1] CRAN (R 4.0.3)                      
#;-)  DBI            1.1.0      2019-12-15 [1] CRAN (R 4.0.3)                      
#;-)  dbplyr         1.4.4      2020-05-27 [1] CRAN (R 4.0.3)                      
#;-)  desc           1.2.0      2018-05-01 [1] CRAN (R 4.0.3)                      
#;-)  devtools       2.3.2      2020-09-18 [1] CRAN (R 4.0.3)                      
#;-)  digest         0.6.27     2020-10-24 [1] CRAN (R 4.0.3)                      
#;-)  dplyr        * 1.0.2      2020-08-18 [1] CRAN (R 4.0.3)                      
#;-)  ellipsis       0.3.1      2020-05-15 [1] CRAN (R 4.0.3)                      
#;-)  evaluate       0.14       2019-05-28 [1] CRAN (R 4.0.3)                      
#;-)  extrafont      0.17       2014-12-08 [1] CRAN (R 4.0.3)                      
#;-)  extrafontdb    1.0        2012-06-11 [1] CRAN (R 4.0.3)                      
#;-)  fansi          0.4.1      2020-01-08 [1] CRAN (R 4.0.3)                      
#;-)  farver         2.0.3      2020-01-16 [1] CRAN (R 4.0.3)                      
#;-)  forcats      * 0.5.0      2020-03-01 [1] CRAN (R 4.0.3)                      
#;-)  fs             1.5.0      2020-07-31 [1] CRAN (R 4.0.3)                      
#;-)  generics       0.0.2      2018-11-29 [1] CRAN (R 4.0.3)                      
#;-)  ggplot2      * 3.3.2      2020-06-19 [1] CRAN (R 4.0.3)                      
#;-)  glue           1.4.2      2020-08-27 [1] CRAN (R 4.0.3)                      
#;-)  gridGraphics   0.5-0      2020-02-25 [1] CRAN (R 4.0.3)                      
#;-)  gridSVG        1.7-2      2020-04-28 [1] CRAN (R 4.0.3)                      
#;-)  gtable         0.3.0      2019-03-25 [1] CRAN (R 4.0.3)                      
#;-)  haven          2.3.1      2020-06-01 [1] CRAN (R 4.0.3)                      
#;-)  highr          0.8        2019-03-20 [1] CRAN (R 4.0.3)                      
#;-)  hms            0.5.3      2020-01-08 [1] CRAN (R 4.0.3)                      
#;-)  htmltools      0.5.0.9002 2020-10-25 [1] Github (rstudio/htmltools@079503c)  
#;-)  httr           1.4.2      2020-07-20 [1] CRAN (R 4.0.3)                      
#;-)  hunspell       3.0        2018-12-15 [1] CRAN (R 4.0.3)                      
#;-)  jsonlite       1.7.1      2020-09-07 [1] CRAN (R 4.0.3)                      
#;-)  knitr          1.30.2     2020-10-25 [1] Github (yihui/knitr@f409cd9)        
#;-)  labeling       0.4.2      2020-10-20 [1] CRAN (R 4.0.3)                      
#;-)  lattice        0.20-41    2020-04-02 [1] CRAN (R 4.0.3)                      
#;-)  lifecycle      0.2.0      2020-03-06 [1] CRAN (R 4.0.3)                      
#;-)  lubridate      1.7.9      2020-06-08 [1] CRAN (R 4.0.3)                      
#;-)  magrittr       1.5        2014-11-22 [1] CRAN (R 4.0.3)                      
#;-)  Matrix         1.2-18     2019-11-27 [1] CRAN (R 4.0.3)                      
#;-)  memoise        1.1.0      2017-04-21 [1] CRAN (R 4.0.3)                      
#;-)  mime           0.9        2020-02-04 [1] CRAN (R 4.0.3)                      
#;-)  modelr         0.1.8      2020-05-19 [1] CRAN (R 4.0.3)                      
#;-)  moments        0.14       2015-01-05 [1] CRAN (R 4.0.3)                      
#;-)  munsell        0.5.0      2018-06-12 [1] CRAN (R 4.0.3)                      
#;-)  nortest        1.0-4      2015-07-30 [1] CRAN (R 4.0.3)                      
#;-)  pillar         1.4.6      2020-07-10 [1] CRAN (R 4.0.3)                      
#;-)  pkgbuild       1.1.0      2020-07-13 [1] CRAN (R 4.0.3)                      
#;-)  pkgconfig      2.0.3      2019-09-22 [1] CRAN (R 4.0.3)                      
#;-)  pkgload        1.1.0      2020-05-29 [1] CRAN (R 4.0.3)                      
#;-)  prettyunits    1.1.1      2020-01-24 [1] CRAN (R 4.0.3)                      
#;-)  processx       3.4.4      2020-09-03 [1] CRAN (R 4.0.3)                      
#;-)  ps             1.4.0      2020-10-07 [1] CRAN (R 4.0.3)                      
#;-)  purrr        * 0.3.4      2020-04-17 [1] CRAN (R 4.0.3)                      
#;-)  R.cache        0.14.0     2019-12-06 [1] CRAN (R 4.0.3)                      
#;-)  R.methodsS3    1.8.1      2020-08-26 [1] CRAN (R 4.0.3)                      
#;-)  R.oo           1.24.0     2020-08-26 [1] CRAN (R 4.0.3)                      
#;-)  R.utils        2.10.1     2020-08-26 [1] CRAN (R 4.0.3)                      
#;-)  R6             2.4.1      2019-11-12 [1] CRAN (R 4.0.3)                      
#;-)  Rcpp           1.0.5      2020-07-06 [1] CRAN (R 4.0.3)                      
#;-)  readr        * 1.4.0      2020-10-05 [1] CRAN (R 4.0.3)                      
#;-)  readxl         1.3.1      2019-03-13 [1] CRAN (R 4.0.3)                      
#;-)  rematch2       2.1.2      2020-05-01 [1] CRAN (R 4.0.3)                      
#;-)  remotes      * 2.2.0      2020-07-21 [1] CRAN (R 4.0.3)                      
#;-)  reprex         0.3.0.9001 2020-10-25 [1] Github (tidyverse/reprex@d3fc4b8)   
#;-)  reticulate     1.17       2020-10-21 [1] CRAN (R 4.0.3)                      
#;-)  rlang          0.4.8      2020-10-08 [1] CRAN (R 4.0.3)                      
#;-)  rmarkdown      2.5.2      2020-10-25 [1] Github (rstudio/rmarkdown@8b66a73)  
#;-)  roloc          0.1-1      2018-07-30 [1] CRAN (R 4.0.3)                      
#;-)  rolocISCCNBS   0.1        2018-08-02 [1] CRAN (R 4.0.3)                      
#;-)  rprojroot      1.3-2      2018-01-03 [1] CRAN (R 4.0.3)                      
#;-)  Rttf2pt1       1.3.8      2020-01-10 [1] CRAN (R 4.0.3)                      
#;-)  rvest          0.3.6      2020-07-25 [1] CRAN (R 4.0.3)                      
#;-)  scales         1.1.1      2020-05-11 [1] CRAN (R 4.0.3)                      
#;-)  sessioninfo    1.1.1      2018-11-05 [1] CRAN (R 4.0.3)                      
#;-)  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.3)                      
#;-)  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.3)                      
#;-)  tibble       * 3.0.4      2020-10-12 [1] CRAN (R 4.0.3)                      
#;-)  tidyr        * 1.1.2      2020-08-27 [1] CRAN (R 4.0.3)                      
#;-)  tidyselect     1.1.0      2020-05-11 [1] CRAN (R 4.0.3)                      
#;-)  tidyverse    * 1.3.0      2019-11-21 [1] CRAN (R 4.0.3)                      
#;-)  usethis        1.6.3      2020-09-17 [1] CRAN (R 4.0.3)                      
#;-)  vctrs          0.3.4      2020-08-29 [1] CRAN (R 4.0.3)                      
#;-)  whisker        0.4        2019-08-28 [1] CRAN (R 4.0.3)                      
#;-)  withr          2.3.0      2020-09-22 [1] CRAN (R 4.0.3)                      
#;-)  xfun           0.18       2020-09-29 [1] CRAN (R 4.0.3)                      
#;-)  XML            3.99-0.5   2020-07-23 [1] CRAN (R 4.0.3)                      
#;-)  xml2           1.3.2      2020-04-23 [1] CRAN (R 4.0.3)                      
#;-)  xtable         1.8-4      2019-04-21 [1] CRAN (R 4.0.3)                      
#;-)  yaml           2.2.1      2020-02-01 [1] CRAN (R 4.0.3)                      
#;-) 
#;-) [1] C:/Program Files/R/R-4.0.3/library
Standard output and standard error `C:/test/g-alt/g-alt_std_out_err.txt`
Session info
sessioninfo::session_info()
#;-) - Session info ---------------------------------------------------------------
#;-)  setting  value                       
#;-)  version  R version 4.0.3 (2020-10-10)
#;-)  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     2020-10-25                  
#;-) 
#;-) - Packages -------------------------------------------------------------------
#;-)  package      * version    date       lib source                              
#;-)  assertthat     0.2.1      2019-03-21 [1] CRAN (R 4.0.3)                      
#;-)  backports      1.1.10     2020-09-15 [1] CRAN (R 4.0.3)                      
#;-)  blob           1.2.1      2020-01-20 [1] CRAN (R 4.0.3)                      
#;-)  BrailleR     * 0.31.0     2020-10-24 [1] Github (ajrgodfrey/BrailleR@59d0949)
#;-)  broom          0.7.2.9000 2020-10-25 [1] Github (tidymodels/broom@c0ae258)   
#;-)  callr          3.5.1      2020-10-13 [1] CRAN (R 4.0.3)                      
#;-)  cellranger     1.1.0      2016-07-27 [1] CRAN (R 4.0.3)                      
#;-)  cli            2.1.0      2020-10-12 [1] CRAN (R 4.0.3)                      
#;-)  colorspace     1.4-1      2019-03-18 [1] CRAN (R 4.0.3)                      
#;-)  crayon         1.3.4      2017-09-16 [1] CRAN (R 4.0.3)                      
#;-)  curl           4.3        2019-12-02 [1] CRAN (R 4.0.3)                      
#;-)  DBI            1.1.0      2019-12-15 [1] CRAN (R 4.0.3)                      
#;-)  dbplyr         1.4.4      2020-05-27 [1] CRAN (R 4.0.3)                      
#;-)  desc           1.2.0      2018-05-01 [1] CRAN (R 4.0.3)                      
#;-)  devtools       2.3.2      2020-09-18 [1] CRAN (R 4.0.3)                      
#;-)  digest         0.6.27     2020-10-24 [1] CRAN (R 4.0.3)                      
#;-)  dplyr        * 1.0.2      2020-08-18 [1] CRAN (R 4.0.3)                      
#;-)  ellipsis       0.3.1      2020-05-15 [1] CRAN (R 4.0.3)                      
#;-)  evaluate       0.14       2019-05-28 [1] CRAN (R 4.0.3)                      
#;-)  extrafont      0.17       2014-12-08 [1] CRAN (R 4.0.3)                      
#;-)  extrafontdb    1.0        2012-06-11 [1] CRAN (R 4.0.3)                      
#;-)  fansi          0.4.1      2020-01-08 [1] CRAN (R 4.0.3)                      
#;-)  farver         2.0.3      2020-01-16 [1] CRAN (R 4.0.3)                      
#;-)  forcats      * 0.5.0      2020-03-01 [1] CRAN (R 4.0.3)                      
#;-)  fs             1.5.0      2020-07-31 [1] CRAN (R 4.0.3)                      
#;-)  generics       0.0.2      2018-11-29 [1] CRAN (R 4.0.3)                      
#;-)  ggplot2      * 3.3.2      2020-06-19 [1] CRAN (R 4.0.3)                      
#;-)  glue           1.4.2      2020-08-27 [1] CRAN (R 4.0.3)                      
#;-)  gridGraphics   0.5-0      2020-02-25 [1] CRAN (R 4.0.3)                      
#;-)  gridSVG        1.7-2      2020-04-28 [1] CRAN (R 4.0.3)                      
#;-)  gtable         0.3.0      2019-03-25 [1] CRAN (R 4.0.3)                      
#;-)  haven          2.3.1      2020-06-01 [1] CRAN (R 4.0.3)                      
#;-)  highr          0.8        2019-03-20 [1] CRAN (R 4.0.3)                      
#;-)  hms            0.5.3      2020-01-08 [1] CRAN (R 4.0.3)                      
#;-)  htmltools      0.5.0.9002 2020-10-25 [1] Github (rstudio/htmltools@079503c)  
#;-)  httr           1.4.2      2020-07-20 [1] CRAN (R 4.0.3)                      
#;-)  hunspell       3.0        2018-12-15 [1] CRAN (R 4.0.3)                      
#;-)  jsonlite       1.7.1      2020-09-07 [1] CRAN (R 4.0.3)                      
#;-)  knitr          1.30.2     2020-10-25 [1] Github (yihui/knitr@f409cd9)        
#;-)  labeling       0.4.2      2020-10-20 [1] CRAN (R 4.0.3)                      
#;-)  lattice        0.20-41    2020-04-02 [1] CRAN (R 4.0.3)                      
#;-)  lifecycle      0.2.0      2020-03-06 [1] CRAN (R 4.0.3)                      
#;-)  lubridate      1.7.9      2020-06-08 [1] CRAN (R 4.0.3)                      
#;-)  magrittr       1.5        2014-11-22 [1] CRAN (R 4.0.3)                      
#;-)  Matrix         1.2-18     2019-11-27 [1] CRAN (R 4.0.3)                      
#;-)  memoise        1.1.0      2017-04-21 [1] CRAN (R 4.0.3)                      
#;-)  mime           0.9        2020-02-04 [1] CRAN (R 4.0.3)                      
#;-)  modelr         0.1.8      2020-05-19 [1] CRAN (R 4.0.3)                      
#;-)  moments        0.14       2015-01-05 [1] CRAN (R 4.0.3)                      
#;-)  munsell        0.5.0      2018-06-12 [1] CRAN (R 4.0.3)                      
#;-)  nortest        1.0-4      2015-07-30 [1] CRAN (R 4.0.3)                      
#;-)  pillar         1.4.6      2020-07-10 [1] CRAN (R 4.0.3)                      
#;-)  pkgbuild       1.1.0      2020-07-13 [1] CRAN (R 4.0.3)                      
#;-)  pkgconfig      2.0.3      2019-09-22 [1] CRAN (R 4.0.3)                      
#;-)  pkgload        1.1.0      2020-05-29 [1] CRAN (R 4.0.3)                      
#;-)  prettyunits    1.1.1      2020-01-24 [1] CRAN (R 4.0.3)                      
#;-)  processx       3.4.4      2020-09-03 [1] CRAN (R 4.0.3)                      
#;-)  ps             1.4.0      2020-10-07 [1] CRAN (R 4.0.3)                      
#;-)  purrr        * 0.3.4      2020-04-17 [1] CRAN (R 4.0.3)                      
#;-)  R.cache        0.14.0     2019-12-06 [1] CRAN (R 4.0.3)                      
#;-)  R.methodsS3    1.8.1      2020-08-26 [1] CRAN (R 4.0.3)                      
#;-)  R.oo           1.24.0     2020-08-26 [1] CRAN (R 4.0.3)                      
#;-)  R.utils        2.10.1     2020-08-26 [1] CRAN (R 4.0.3)                      
#;-)  R6             2.4.1      2019-11-12 [1] CRAN (R 4.0.3)                      
#;-)  Rcpp           1.0.5      2020-07-06 [1] CRAN (R 4.0.3)                      
#;-)  readr        * 1.4.0      2020-10-05 [1] CRAN (R 4.0.3)                      
#;-)  readxl         1.3.1      2019-03-13 [1] CRAN (R 4.0.3)                      
#;-)  rematch2       2.1.2      2020-05-01 [1] CRAN (R 4.0.3)                      
#;-)  remotes      * 2.2.0      2020-07-21 [1] CRAN (R 4.0.3)                      
#;-)  reprex         0.3.0.9001 2020-10-25 [1] Github (tidyverse/reprex@d3fc4b8)   
#;-)  reticulate     1.17       2020-10-21 [1] CRAN (R 4.0.3)                      
#;-)  rlang          0.4.8      2020-10-08 [1] CRAN (R 4.0.3)                      
#;-)  rmarkdown      2.5.2      2020-10-25 [1] Github (rstudio/rmarkdown@8b66a73)  
#;-)  roloc          0.1-1      2018-07-30 [1] CRAN (R 4.0.3)                      
#;-)  rolocISCCNBS   0.1        2018-08-02 [1] CRAN (R 4.0.3)                      
#;-)  rprojroot      1.3-2      2018-01-03 [1] CRAN (R 4.0.3)                      
#;-)  Rttf2pt1       1.3.8      2020-01-10 [1] CRAN (R 4.0.3)                      
#;-)  rvest          0.3.6      2020-07-25 [1] CRAN (R 4.0.3)                      
#;-)  scales         1.1.1      2020-05-11 [1] CRAN (R 4.0.3)                      
#;-)  sessioninfo    1.1.1      2018-11-05 [1] CRAN (R 4.0.3)                      
#;-)  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.3)                      
#;-)  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.3)                      
#;-)  tibble       * 3.0.4      2020-10-12 [1] CRAN (R 4.0.3)                      
#;-)  tidyr        * 1.1.2      2020-08-27 [1] CRAN (R 4.0.3)                      
#;-)  tidyselect     1.1.0      2020-05-11 [1] CRAN (R 4.0.3)                      
#;-)  tidyverse    * 1.3.0      2019-11-21 [1] CRAN (R 4.0.3)                      
#;-)  usethis        1.6.3      2020-09-17 [1] CRAN (R 4.0.3)                      
#;-)  vctrs          0.3.4      2020-08-29 [1] CRAN (R 4.0.3)                      
#;-)  whisker        0.4        2019-08-28 [1] CRAN (R 4.0.3)                      
#;-)  withr          2.3.0      2020-09-22 [1] CRAN (R 4.0.3)                      
#;-)  xfun           0.18       2020-09-29 [1] CRAN (R 4.0.3)                      
#;-)  XML            3.99-0.5   2020-07-23 [1] CRAN (R 4.0.3)                      
#;-)  xml2           1.3.2      2020-04-23 [1] CRAN (R 4.0.3)                      
#;-)  xtable         1.8-4      2019-04-21 [1] CRAN (R 4.0.3)                      
#;-)  yaml           2.2.1      2020-02-01 [1] CRAN (R 4.0.3)                      
#;-) 
#;-) [1] C:/Program Files/R/R-4.0.3/library
Standard output and standard error
-- nothing to show --
Session info
sessioninfo::session_info()
#;-) - Session info ---------------------------------------------------------------
#;-)  setting  value                       
#;-)  version  R version 4.0.3 (2020-10-10)
#;-)  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     2020-10-25                  
#;-) 
#;-) - Packages -------------------------------------------------------------------
#;-)  package      * version    date       lib source                              
#;-)  assertthat     0.2.1      2019-03-21 [1] CRAN (R 4.0.3)                      
#;-)  backports      1.1.10     2020-09-15 [1] CRAN (R 4.0.3)                      
#;-)  blob           1.2.1      2020-01-20 [1] CRAN (R 4.0.3)                      
#;-)  BrailleR     * 0.31.0     2020-10-24 [1] Github (ajrgodfrey/BrailleR@59d0949)
#;-)  broom          0.7.2.9000 2020-10-25 [1] Github (tidymodels/broom@c0ae258)   
#;-)  callr          3.5.1      2020-10-13 [1] CRAN (R 4.0.3)                      
#;-)  cellranger     1.1.0      2016-07-27 [1] CRAN (R 4.0.3)                      
#;-)  cli            2.1.0      2020-10-12 [1] CRAN (R 4.0.3)                      
#;-)  colorspace     1.4-1      2019-03-18 [1] CRAN (R 4.0.3)                      
#;-)  crayon         1.3.4      2017-09-16 [1] CRAN (R 4.0.3)                      
#;-)  curl           4.3        2019-12-02 [1] CRAN (R 4.0.3)                      
#;-)  DBI            1.1.0      2019-12-15 [1] CRAN (R 4.0.3)                      
#;-)  dbplyr         1.4.4      2020-05-27 [1] CRAN (R 4.0.3)                      
#;-)  desc           1.2.0      2018-05-01 [1] CRAN (R 4.0.3)                      
#;-)  devtools       2.3.2      2020-09-18 [1] CRAN (R 4.0.3)                      
#;-)  digest         0.6.27     2020-10-24 [1] CRAN (R 4.0.3)                      
#;-)  dplyr        * 1.0.2      2020-08-18 [1] CRAN (R 4.0.3)                      
#;-)  ellipsis       0.3.1      2020-05-15 [1] CRAN (R 4.0.3)                      
#;-)  evaluate       0.14       2019-05-28 [1] CRAN (R 4.0.3)                      
#;-)  extrafont      0.17       2014-12-08 [1] CRAN (R 4.0.3)                      
#;-)  extrafontdb    1.0        2012-06-11 [1] CRAN (R 4.0.3)                      
#;-)  fansi          0.4.1      2020-01-08 [1] CRAN (R 4.0.3)                      
#;-)  farver         2.0.3      2020-01-16 [1] CRAN (R 4.0.3)                      
#;-)  forcats      * 0.5.0      2020-03-01 [1] CRAN (R 4.0.3)                      
#;-)  fs             1.5.0      2020-07-31 [1] CRAN (R 4.0.3)                      
#;-)  generics       0.0.2      2018-11-29 [1] CRAN (R 4.0.3)                      
#;-)  ggplot2      * 3.3.2      2020-06-19 [1] CRAN (R 4.0.3)                      
#;-)  glue           1.4.2      2020-08-27 [1] CRAN (R 4.0.3)                      
#;-)  gridGraphics   0.5-0      2020-02-25 [1] CRAN (R 4.0.3)                      
#;-)  gridSVG        1.7-2      2020-04-28 [1] CRAN (R 4.0.3)                      
#;-)  gtable         0.3.0      2019-03-25 [1] CRAN (R 4.0.3)                      
#;-)  haven          2.3.1      2020-06-01 [1] CRAN (R 4.0.3)                      
#;-)  highr          0.8        2019-03-20 [1] CRAN (R 4.0.3)                      
#;-)  hms            0.5.3      2020-01-08 [1] CRAN (R 4.0.3)                      
#;-)  htmltools      0.5.0.9002 2020-10-25 [1] Github (rstudio/htmltools@079503c)  
#;-)  httr           1.4.2      2020-07-20 [1] CRAN (R 4.0.3)                      
#;-)  hunspell       3.0        2018-12-15 [1] CRAN (R 4.0.3)                      
#;-)  jsonlite       1.7.1      2020-09-07 [1] CRAN (R 4.0.3)                      
#;-)  knitr          1.30.2     2020-10-25 [1] Github (yihui/knitr@f409cd9)        
#;-)  labeling       0.4.2      2020-10-20 [1] CRAN (R 4.0.3)                      
#;-)  lattice        0.20-41    2020-04-02 [1] CRAN (R 4.0.3)                      
#;-)  lifecycle      0.2.0      2020-03-06 [1] CRAN (R 4.0.3)                      
#;-)  lubridate      1.7.9      2020-06-08 [1] CRAN (R 4.0.3)                      
#;-)  magrittr       1.5        2014-11-22 [1] CRAN (R 4.0.3)                      
#;-)  Matrix         1.2-18     2019-11-27 [1] CRAN (R 4.0.3)                      
#;-)  memoise        1.1.0      2017-04-21 [1] CRAN (R 4.0.3)                      
#;-)  mime           0.9        2020-02-04 [1] CRAN (R 4.0.3)                      
#;-)  modelr         0.1.8      2020-05-19 [1] CRAN (R 4.0.3)                      
#;-)  moments        0.14       2015-01-05 [1] CRAN (R 4.0.3)                      
#;-)  munsell        0.5.0      2018-06-12 [1] CRAN (R 4.0.3)                      
#;-)  nortest        1.0-4      2015-07-30 [1] CRAN (R 4.0.3)                      
#;-)  pillar         1.4.6      2020-07-10 [1] CRAN (R 4.0.3)                      
#;-)  pkgbuild       1.1.0      2020-07-13 [1] CRAN (R 4.0.3)                      
#;-)  pkgconfig      2.0.3      2019-09-22 [1] CRAN (R 4.0.3)                      
#;-)  pkgload        1.1.0      2020-05-29 [1] CRAN (R 4.0.3)                      
#;-)  prettyunits    1.1.1      2020-01-24 [1] CRAN (R 4.0.3)                      
#;-)  processx       3.4.4      2020-09-03 [1] CRAN (R 4.0.3)                      
#;-)  ps             1.4.0      2020-10-07 [1] CRAN (R 4.0.3)                      
#;-)  purrr        * 0.3.4      2020-04-17 [1] CRAN (R 4.0.3)                      
#;-)  R.cache        0.14.0     2019-12-06 [1] CRAN (R 4.0.3)                      
#;-)  R.methodsS3    1.8.1      2020-08-26 [1] CRAN (R 4.0.3)                      
#;-)  R.oo           1.24.0     2020-08-26 [1] CRAN (R 4.0.3)                      
#;-)  R.utils        2.10.1     2020-08-26 [1] CRAN (R 4.0.3)                      
#;-)  R6             2.4.1      2019-11-12 [1] CRAN (R 4.0.3)                      
#;-)  Rcpp           1.0.5      2020-07-06 [1] CRAN (R 4.0.3)                      
#;-)  readr        * 1.4.0      2020-10-05 [1] CRAN (R 4.0.3)                      
#;-)  readxl         1.3.1      2019-03-13 [1] CRAN (R 4.0.3)                      
#;-)  rematch2       2.1.2      2020-05-01 [1] CRAN (R 4.0.3)                      
#;-)  remotes      * 2.2.0      2020-07-21 [1] CRAN (R 4.0.3)                      
#;-)  reprex         0.3.0.9001 2020-10-25 [1] Github (tidyverse/reprex@d3fc4b8)   
#;-)  reticulate     1.17       2020-10-21 [1] CRAN (R 4.0.3)                      
#;-)  rlang          0.4.8      2020-10-08 [1] CRAN (R 4.0.3)                      
#;-)  rmarkdown      2.5.2      2020-10-25 [1] Github (rstudio/rmarkdown@8b66a73)  
#;-)  roloc          0.1-1      2018-07-30 [1] CRAN (R 4.0.3)                      
#;-)  rolocISCCNBS   0.1        2018-08-02 [1] CRAN (R 4.0.3)                      
#;-)  rprojroot      1.3-2      2018-01-03 [1] CRAN (R 4.0.3)                      
#;-)  Rttf2pt1       1.3.8      2020-01-10 [1] CRAN (R 4.0.3)                      
#;-)  rvest          0.3.6      2020-07-25 [1] CRAN (R 4.0.3)                      
#;-)  scales         1.1.1      2020-05-11 [1] CRAN (R 4.0.3)                      
#;-)  sessioninfo    1.1.1      2018-11-05 [1] CRAN (R 4.0.3)                      
#;-)  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.3)                      
#;-)  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.3)                      
#;-)  tibble       * 3.0.4      2020-10-12 [1] CRAN (R 4.0.3)                      
#;-)  tidyr        * 1.1.2      2020-08-27 [1] CRAN (R 4.0.3)                      
#;-)  tidyselect     1.1.0      2020-05-11 [1] CRAN (R 4.0.3)                      
#;-)  tidyverse    * 1.3.0      2019-11-21 [1] CRAN (R 4.0.3)                      
#;-)  usethis        1.6.3      2020-09-17 [1] CRAN (R 4.0.3)                      
#;-)  vctrs          0.3.4      2020-08-29 [1] CRAN (R 4.0.3)                      
#;-)  whisker        0.4        2019-08-28 [1] CRAN (R 4.0.3)                      
#;-)  withr          2.3.0      2020-09-22 [1] CRAN (R 4.0.3)                      
#;-)  xfun           0.18       2020-09-29 [1] CRAN (R 4.0.3)                      
#;-)  XML            3.99-0.5   2020-07-23 [1] CRAN (R 4.0.3)                      
#;-)  xml2           1.3.2      2020-04-23 [1] CRAN (R 4.0.3)                      
#;-)  xtable         1.8-4      2019-04-21 [1] CRAN (R 4.0.3)                      
#;-)  yaml           2.2.1      2020-02-01 [1] CRAN (R 4.0.3)                      
#;-) 
#;-) [1] C:/Program Files/R/R-4.0.3/library

@cderv
Copy link
Collaborator

cderv commented Oct 25, 2020

@jooyoungseo thanks for the feedback. can you try the PR in knitr yihui/knitr#1900 where I suggest an implementation for this ?

@jooyoungseo
Copy link

@cderv, awesome! I have just pulled and tested your PR. That works nicely for me. Thanks for your hard work. I hope that it could be merged soon.

@cderv
Copy link
Collaborator

cderv commented Jan 22, 2021

fig.alt is now an option in for knitr chunks. You can try with the dev version of knitr !

remotes::install_github('yihui/knitr')

Please, give us feedback if this is not enough and we missed something.

@cderv cderv removed their assignment Jan 22, 2021
@mdogucu
Copy link
Author

mdogucu commented Jan 22, 2021

Thank you so much!!!

@atyrell3
Copy link

Hi, I'm trying out this feature and I can't get it to work.
This is my chunk header:
{r nice-fig, fig.cap='Here is a nice figure!', out.width='80%', fig.asp=.75, fig.align='center', fig.alt= "here is some alt text", dev = c("png", "jpeg", "pdf"), fig.path = "_book/figures//"}
I am rendering the document with bookdown::render_book(input = ".", output_format = bookdown::word_document2()).
I updated knitr, rmarkdown, officer, and officedown to the most recent dev versions, but my alternative text in the Word document is still the same as the caption. Am I missing something?
Thanks very much for your help!

@cderv
Copy link
Collaborator

cderv commented Mar 17, 2021

Hi @atyrell3, unfortunately this is currently a limitation of fig.alt chunk option support.: it is currently only available for HTML output, map to the alt= attribute.

We need to find a way to make it work with other output format which is not straightforward - please follow: yihui/knitr#1967

@atyrell3
Copy link

atyrell3 commented Mar 17, 2021

Hi @cderv, thanks for the explanation. I think I found a suitable workaround that can be used for now. This code:

```{r nice-fig, fig.cap='Here is a nice alt text!', out.width='80%', fig.asp=.75, fig.align='center', dev = c("png", "jpeg", "pdf"), fig.path = "_book/figures//"}
par(mar = c(4, 4, .1, .1))
plot(pressure, type = 'b', pch = 19)
```
\

*Figure \@ref(fig:nice-fig). This is actually the caption!*

renders as shown in the attached image.

Caveat - as far as I can tell, the document must be rendered with bookdown for \@ref(fig:nice-fig) to work.

alt text workaround

@cderv
Copy link
Collaborator

cderv commented Mar 17, 2021

yes this hack workaround is working. Nice find. For reference, here is why

  • Adding \ directly after the chunk will make the figure added inline by Pandoc - which means no caption used below the figure. Doc here: https://pandoc.org/MANUAL.html#images
  • Pandoc set the description in word (the alt text) the same as the caption text. With the above it will use the text in alt text and not show the caption text - this is what does not help us for now, no way to differentiate with Pandoc it seems.
  • Creating the "caption" manually works because you are using normal text make it look like caption. Know that caption in word has a special style in the document called Image Caption. The text inserted below the image won't have that style as it will be main body markdown. But if you need that style you could improve the workaround by setting the custom style to the expected one in the template. e.g
::: {custom-style="Image Caption"}
Figure \@ref(fig:nice-fig). This is actually the caption!
:::

as far as I can tell, the document must be rendered with bookdown for @ref(fig:nice-fig) to work.

It is expected. Figure referencing and numbering only work with bookdown output: https://bookdown.org/yihui/bookdown/figures.html#figures

Thanks for sharing this, maybe we could work around this to make it work for docx, until Pandoc supports it correctly. 🤔

@atyrell3
Copy link

Thanks for the explanation and extra info!

There is a way to simplify the workaround slightly. If you turn off captions in the yaml with fig_caption: false (as done here) then you don't need the line with the backslash.

@github-actions
Copy link

This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants