Error in gzfile(file, "rb") : unable to translate.

just downloaded R and R Studio for the first time, but when i tried downloading Rmarkdown install.packages("rmarkdown", dependencies = TRUE)

I am getting this error message Error in gzfile(file, "rb") : unable to translate....

How can i fix this?

Can you post the complete error message you get? we need more information to help you.

Error in gzfile(file, "rb") :
unable to translate 'C:/Users/Ghyda/OneDrive/<U+0627><U+0644><U+0645><U+0633><U+062A><U+0646><U+062F><U+0627><U+062A>/R/win-library/4.0/knitr/Meta/package.rds' to native encoding

R is having problems with the encoding of the characters in your library path, try installing into the system-level package library instead.

You can change the default values by setting your R_LIBS_SITE environmental variable on a .Reviron or .Rprofile file, for example:

# In .Renviron file you can set it by adding this line
R_LIBS_SITE="C:\\Program Files\\R\\R-4.0.2\\library"

thanks, it is working now

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.