Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Writing symbols in R package documentation files (.Rd files)

Tags:

r

Is there a way to include symbols in these documentation files? In particular, I would need to include a "degree symbol" (°) for indicating coordinates (e.g. 55°32'32") of a dataset I would like to include and document.

When I currently include such symbol, the document file insert a "Â" character (e.g.55°32'32").

Maybe I missed something but I found nothing in the "Writing R Extensions" manual regarding this possibility.

Thanks

like image 482
Marc Avatar asked Nov 26 '22 05:11

Marc


1 Answers

Doing it from Rstudio (Version 0.99.467):

  1. create .Rd file

Rd file creation

  1. insert desired character (see description field)

enter image description here

  1. save doc
  2. select encoding standard as prompted

enter image description here

  1. preview the file

enter image description here

Does this work for you?

like image 164
Andrea Cirillo Avatar answered Nov 29 '22 04:11

Andrea Cirillo