R bindings for the
Google Compact Encoding Detection library. Key features:
To install the package from the CRAN run the following command:
Also you could install the dev-version with the
install_gitlab() function from the
This package contains the compiled code, therefore you have to use the Rtools to install it on Windows.
# load packages library(ced) # detect string encoding ascii <- "Hello, useR!" print(ascii) #>  "Hello, useR!" ced_enc_detect(ascii) #>  "US-ASCII" utf8 <- "\u4e0b\u5348\u597d" print(utf8) #>  "下午好" ced_enc_detect(utf8) #>  "UTF-8" # detect raw vector encoding ced_enc_detect(charToRaw(ascii)) #>  "US-ASCII" ced_enc_detect(charToRaw(utf8)) #>  "UTF-8"
Use the following command to go to the page for bug report submissions:
Before reporting a bug or submitting an issue, please do the following:
news(package = "ced", Version == packageVersion("ced"))command;
cedpackage, not from other packages;
Please attach traceback() and sessionInfo() output to bug report. It may save a lot of time.
ced package is distributed under GPLv2 license.