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

fix loading ESSR in R 2.5 #1298

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bastistician
Copy link
Contributor

Loading ESSR failed in R 2.5.0 (not that I run this regularly, but it was annoying when I wanted to try something in some older R versions).

The first problem was in .ess.ESSR.load() which relied on nzchar from R >= 2.6.0. Avoiding this would still not give me a working prompt because .ess.command(), which is needed by ess-r-initialize, used paste0() which "only" exists since R 2.15.0. The corresponding fixes are trivial and attached here.

NB: This PR does not address the current incompatibility of ESSR with even older versions of R.

  • R < 1.8.0 fails because ::: in .ess.fetchParsedRd() gives syntax errors.
  • R < 2.3.0 fails because emptyenv() for .ess.environment.state does not exist.
  • R < 2.5.0 fails because withVisible() in .ess.command() does not exist.

So just loading ESSR is still broken in these old R versions.
It turns out the header comment in ESSR/R/.basic.R, "Should work on all versions of R", is increasingly hard to fulfil.

@mmaechler
Copy link
Member

mmaechler commented Jul 31, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants