Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CRAN check: '\R' is an unrecognized escape in character string starting "'D:\temp\R"

Tags:

r

cran

I'm trying to update a package on CRAN, but I'm getting a warning on their automatic check I can't reproduce in R CMD check. These are the last lines of the log file:

   * checking re-building of vignette outputs ... [0s] WARNING
    Error(s) in re-building vignettes:
    Error: '\R' is an unrecognized escape in character string starting "'D:\temp\R"
    Execution halted

R CMD check passes with no errors in my computer for both Linux and Windows versions and I'm unable to find where is "'D:\temp\R" being used. There is no file path written in the package vignette at all.

How can I figure out where exactly is the error happening and fix it?

I'm aware how the backslash causes trouble in Windows and most similar questions are related to that, while my problem is at finding out why CRAN did this even when I didn't use file paths at all.

like image 844
Freguglia Avatar asked Jan 05 '19 15:01

Freguglia


People also ask

Why is ‘R’ an unrecognized escape in character string starting “”c”?

Unfortunately, the RStudio console returns the Error: ‘R’ is an unrecognized escape in character string starting “”C:R”. The reason for this is that the backslash that we have used in the path is an escape character, and we need to specify that somehow in R. So how can we do that?

What is ‘r’ error in R?

In this R tutorial you’ll learn how to deal with the Error: ‘R’ is an unrecognized escape in character string starting “”C:R”. Here’s how to do it. The following syntax explains how to replicate the Error: ‘R’ is an unrecognized escape in character string starting “”C:R” in the R programming language.

How do I escape a backslash in a character string in R?

The following R code explains how to escape a backslash in a character string. To accomplish this, we have to specify a second backslash in front of the backslash that we want to escape. As you can see, the previous character string output contains one backslash.

Why are the letters before and after a backslash not returned in R?

Furthermore, the letters before and after the backslash have not been returned. The reason for this is that backslashes are treated as special characters in R, and hence we have to apply special rules if we want to use backslashes in character strings. More on that in the next example…


1 Answers

It seems like it was a CRAN problem as mentioned in the comments. I just received an e-mail as if my previous submission was fine, without sending a new form.

like image 69
Freguglia Avatar answered Jan 01 '23 21:01

Freguglia