Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rstudio problem #2585

Open
Rupa-Dey opened this issue Dec 19, 2024 · 1 comment
Open

Rstudio problem #2585

Rupa-Dey opened this issue Dec 19, 2024 · 1 comment
Labels
question general questions - not an issue

Comments

@Rupa-Dey
Copy link

Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
namespace ‘xfun’ 0.44 is being loaded, but >= 0.48 is required

when I run my installed library into the R console it works but RMD file does not support it. it creates same problem after restart the R session. now what can I do?

@cderv
Copy link
Collaborator

cderv commented Dec 20, 2024

namespace ‘xfun’ 0.44 is being loaded, but >= 0.48 is required

Somehow this means you are in a situation where one of the package requires xfun 0.48 minimum, but you stil have xfun 0.44 installed and loaded in the session.

now what can I do?

Open clean R console - no data loaded in workspace, and update xfun

install.packages("xfun")

This will get you the latest version in your user library and this should get you unstuck.

If you are a in a project using renv or any other configuration modifying your R library, you need to adapt this accordingly.

To sum up: You need to install latest xfun in a clean R session.

I say clean because sometimes opening a project in RStudio will load some content and package and you will be block.

You could leverage pak : pak::pak("xfun")

when I run my installed library into the R console it works but RMD file does not support it.

Not sure what that means. R Markdown should support latest xfun

@cderv cderv added the question general questions - not an issue label Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question general questions - not an issue
Projects
None yet
Development

No branches or pull requests

2 participants