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

[Install] unable to re-encode 'datasets.R' line 182 #216

Closed
BruceZhaoR opened this issue Mar 13, 2019 · 1 comment
Closed

[Install] unable to re-encode 'datasets.R' line 182 #216

BruceZhaoR opened this issue Mar 13, 2019 · 1 comment

Comments

@BruceZhaoR
Copy link

gt/R/datasets.R

Line 182 in 602d85a

#' Spinach, Garlic, Jalapeño Peppers, Fontina Cheese, Gouda Cheese)

> cat(stringi::stri_escape_unicode('Jalapeño'))
Jalape\u00f1o

Maybe you need to escape special unicode https://r-pkgs.org/r.html#r-cran

session_info:

> sessioninfo::session_info()
- Session info ------------------------------------------------------------------------
 setting  value                         
 version  R version 3.5.2 (2018-12-20)  
 os       Windows 10 x64                
 system   x86_64, mingw32               
 ui       RStudio                       
 language (EN)                          
 collate  Chinese (Simplified)_China.936
 ctype    Chinese (Simplified)_China.936
 tz       Asia/Shanghai                 
 date     2019-03-13                    

- Packages ----------------------------------------------------------------------------
 package     * version date       lib source        
 assertthat    0.2.0   2017-04-11 [1] CRAN (R 3.5.1)
 cli           1.0.1   2018-09-25 [1] CRAN (R 3.5.1)
 crayon        1.3.4   2017-09-16 [1] CRAN (R 3.5.1)
 fortunes      1.5-4   2016-12-29 [1] CRAN (R 3.5.0)
 packrat       0.5.0   2018-11-14 [1] CRAN (R 3.5.2)
 rstudioapi    0.9.0   2019-01-09 [1] CRAN (R 3.5.2)
 sessioninfo   1.1.1   2018-11-05 [1] CRAN (R 3.5.1)
 stringi       1.4.3   2019-03-12 [1] CRAN (R 3.5.2)
 withr         2.1.2   2018-03-15 [1] CRAN (R 3.5.1)

[1] D:/R/R-3.5-library
[2] D:/R/R-3.5.2/library
@rich-iannone
Copy link
Member

Thanks for discovering this. I can't seem to easily incorporate a Unicode escape so I'm going to just replace ñ with n.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants