fatal error in R

HI

I am having a problem in installing a package named AOI using this code: remotes::install_github("mikejohnson51/AOI"), it was giving a problem with package named prettyunits, it is like it can't be installed without this package and the same package was interupting it from being installed, and then started another problem with the version of xfun package, I tried to install the new version but i couldn't, and I recived a message of fatal error in R, so I deleted the xfun package and now R does not work at all, it gives me this error message for any code I type such as a = 1+2
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
there is no package called ‘xfun’

I hope some one can help me in this issue, I would uninstall R and reinstall it, but I want to know why I am having problem whenever I want to install any package from github?

I suggest that you start by (re)installing xfun. Assuming that works, try to install prettyunits. If you succeed there, try again to install the AOI package.

You ended with "whenever I want to install any package from github". Does that mean you are experiencing problems installing other packages from GitHub?

Hello prubin,
Thank you for the response, and as a response to your question, "You ended with "whenever I want to install any package from github." Does that mean you are experiencing problems installing other packages from GitHub?" The answer is yes, but I don't know if that is due to a lack of knowledge of using GitHub or if I only have less than one year of experience in R.
In relation to my issue, I resolved it by shutting down Rstudio, starting R, and getting the necessary packages. Rstudio was reopened, and every issue was resolved.

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.