I have installed "reshape2" package but when I run it I get this error message " package or namespace load failed for ‘reshape2’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]): there is no package called ‘stringi’"

I have installed "reshape2" package but when I run it I get this error message " package or namespace load failed for ‘reshape2’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]): there is no package called ‘stringi’"

The fix for that specific problem is to run install.packages("stringi"). That will likely lead to another similar error for a different package when you try to load reshape2 again. What command did you run to install reshape2? What version of R are you using?

2 Likes

sidenote : there may be a usecase need for reshape2, if you inherited legacy code that relied on it
but if you are going to new work, its recommended that you dont use reshape2; the tidyr component of tidyverse has superceded it.

1 Like

I used the command "install.packages("reshape2")"
I'm using R version 4.3.2

Yes, you are right. I'm using some legacy codes. Do I need to install tidyverse package?

it depends if you only want to run the old code as it was, or if you want to do work to modernise it.

Have you tried installing stringi?

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.