error on installing package

hello. I'm having trouble installing gginference package. I get this error message and since i'm new to R i have no idea what it means and what to do.

Error in install.packages(lib = .libPaths()[1L], dependencies = NA, type = type) :
unable to install packages

You need to be more specific, what is the command you are using to install? What package you are trying to install? And what is the complete error message you get?

R has problems with synced folders and non ASCII characters in folder paths, and you seem to have both. I recommend you to install into the system level package library instead.

You can change the default library folder by setting your R_LIBS_SITE environmental variable on a .Reviron or .Rprofile file

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

For a more detailed explanation, you can read this blog post

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

If you have a query related to it or one of the replies, start a new topic and refer back with a link.

the command i use is install.packages() and the package is "gginference". the complete error message is:
Error in gzfile(file, "rb") :
unable to translate 'C:/Users/dimpa/OneDrive/<U+0388><U+03B3><U+03B3><U+03C1>afa/R/win-library/4.0/knitr/Meta/package.rds' to native encoding