Learn R Programming

crypto (version 1.1.3)

reset_encoding: Reset locale encoding

Description

Helper function to reset encoding from UTF-8 back to R sessions original locale value.

Usage

reset_encoding(sys_locale)

Arguments

sys_locale

string Original system locale

Value

Sets locale back to original value

Examples

Run this code
# NOT RUN {
sys_locale <- Sys.getlocale(category = 'LC_TIME')
reset_encoding(sys_locale)
# }

Run the code above in your browser using DataLab