Install patch pro R

Asked

Viewed 85 times

4

As documented here, R’s iconv function does not work satisfactorily. Fortunately, a patch has been developed that solves the problem (apparently).

My question is basic: how do I install the patch?

In the ONLY in English, there is an answer that points to the patch solution.

My background:

R version 3.1.3 (2015-03-09)

MAC OSX 10.9.5

Platform: x86_64-apple-darwin13.4.0 (64-bit)

  • 2

    Not exactly the answer to your question, but have you tried using the stringi. It has a function stri_encode that solves many problems it has in the iconv.

  • 2

    Even in the documentation he speaks: These two functions aim to replace R's iconv. It is not only faster, but also works in the same manner on all platforms. and say something about this problem of emptiness: If str is a character vector and from is either missing, "", or NULL, then the declared encodings...

  • To update the R just download the newest version of the CRAN and install, as the first time. There is no special procedure to update.

  • 1

    @Danielfalbel, please post your comment as a response. I believe it is correct and will serve other users.

  • 1

    @Flaviobarros I think my comment does not answer Manoel’s question, it is just a way out of the context he gave... His question " how do I install pacth on R?" has not been answered...

  • In this case, the patch in question modifies an internal function of R. The cited link gives two alternatives, to apply the patch directly in the source code of R (both in one of the archives written in R as in one of the archives written in C), how to simply compile using C code a new iconv as an external program and in an R session, save the data in a file and then using the function system invoke that iconv program from within the R. Install the R from source code on Windows is not exactly simple. Even OP using macos, the second alternative

  • ... the second alternative seems to me better since the most current version of R is 3.3.1, and if he can’t go to the younger one, I don’t think it’s wise to touch an old one’s source code.

Show 2 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.