Home

Awesome

uniscape

Travis-CI Build Status AppVeyor Build Status Coverage Status

Find location of single and double quoted strings in R code. Convert non-ASCII strings to a portable format using Unicode escape codes.

The package contains RStudio addins for making portable non-ASCII strings. The core functions also work in plain R, without RStudio.

Strings converted with RStudio addin

Installation

Install devtools, then run the following command in the R console:

devtools::install_github("mvkorpel/uniscape")

Usage

After installing the package, RStudio should show some new items in the Browse Addins menu. The addins can be run from the menu, or keyboard shortcuts can be created. The addins are implemented with functions find_strings, string_mutate, and u_escape.