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

Replace Unicode / LaTeX conversion table with R script #218

Closed
nanxstats opened this issue Apr 15, 2024 · 2 comments · Fixed by #223
Closed

Replace Unicode / LaTeX conversion table with R script #218

nanxstats opened this issue Apr 15, 2024 · 2 comments · Fixed by #223
Assignees
Labels
enhancement New feature or request

Comments

@nanxstats
Copy link
Collaborator

Suggestion from @yihui: https://github.com/Merck/r2rtf/pull/217/files?diff=unified&w=0#r1564779269

The goal is to put the unicode_latex variable in an R script, to replace the current binary form stored in R/sysdata.rda.

This would also avoid the need of the globalVariables() call for unicode_latex as a hack to bypass R CMD check notes.

@elong0527
Copy link
Collaborator

Based on our discussion, it might trigger issues with special characters. Would consider to keep it as is.

@yihui
Copy link
Collaborator

yihui commented May 15, 2024

Special characters written in the form \Uxxxx should be fine for R CMD check (here is an example). Alternatively, they can be encoded to integers via utf8ToInt() and converted back to UTF-8 via intToUtf8(). Technically I guess the problem is solvable, but I understand it's no big deal, so I'm okay with leaving it alone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants