RStudio always show me "Error in basename(.rs.listIndexedPackages()) : file name conversion problem -- name too long?" no matter what i type in console or editor

No matter what I type in console or editor, RStudio always show me "Error in basename(.rs.listIndexedPackages()) : file name conversion problem -- name too long?"

How can I solve this problem?

This is the picture showing the error.

.rs.listIndexedPackages() is an RStudio internal function that is used to list all your installed packages.

Can you run in R console .libPaths() to let us know where are your library folder ?
In RStudio if possible, or directly in R console if RStudio is not working.

by any chance, did you try to reinstall R and RStudio ?
It could be something related to an issue during previous installation I guess.

Hope it helps.

I run .libPath() in console and this is the picture after running (when I type in console, the error continues to appear)


I uninstalled the Rstudio when the error apperaed firstly. Then I try using zip but the error still exists.

This also could come from R... Did you try to install again ?

I reinstall R and the problem has been solved. Thank you very much!

This topic was automatically closed 7 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.