Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 onnzchar
from R >= 2.6.0. Avoiding this would still not give me a working prompt because.ess.command()
, which is needed byess-r-initialize
, usedpaste0()
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.
:::
in.ess.fetchParsedRd()
gives syntax errors.emptyenv()
for.ess.environment.state
does not exist.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.