-
Notifications
You must be signed in to change notification settings - Fork 7
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
Work on R 3.1 #45
Comments
I understand, @gaborcsardi requested as much. Unfortunately, It might be possible to have a subset of the functionality that doesn't use width computations though, if that is helpful I'll consider it (although not right away as that will still be a bit of work with conditional compilation, etc.). |
Could you call back to R's |
Btw. you need |
That's right, although I'm pretty sure that was available as of 3.1. I think using Of course, this is all doable, but I do wonder whether it is worth it. How long are you planning on supporting 3.1? 3.2 is about to have its third birthday, and 3.5 release is around the corner. Two other bad options include literally calling |
A third option is to have a "crippled" version of the package in 3.1 which supports:
as those don't require width calculations. The other functions could be made to work by assuming that every character is one wide. The package would warn via a startup message about its crippled state. |
Unless you have some support for 3.1 (even if it's partial), we can't depend on it in cli, because cli is (or will be) used by the majority of packages in the tidyverse. At some point in the future, we will consider upgrading our base version to 3.2, but I think that should be a deliberate choice. A crippled version for 3.1 is fine, as long as it doesn't crash and passes R CMD check. I'm not sure a package startup message is even needed. |
Ok I can do that. |
I think we can just turn off colors on R 3.1.x, in the tidyverse/r-lib packages. |
I think I'm mostly done with this (I'm just adding a stub R_nchar if R < 3.2). I do need to build 3.1 for testing, if that turns out to be more difficult than anticipated I'll let you know. |
??? |
[sheepishly]Yeah, I guess I don't actually need to test this with valgrind instrumentation, do I?[sheepishly] |
Yeah, nobody tests R 3.1 with valgrind.... |
Yeah, we can turn off colours, but we can't conditionally import a package (i.e. the main thing we care about is the depends field and passing R CMD check on R 3.1) |
This (development branch) now builds, installs, and runs on R 3.1, though do note the test suite is skipped, and width calculations for wide display characters (or even zero width characters) do not work properly. https://travis-ci.org/brodieG/fansi/jobs/361921785 Please confirm this meets your requirements. Since "Days since last update: 3" I will need to wait a couple of weeks before I can resubmit to CRAN. |
Thanks, great! |
It would be great to have R 3.1 support, since otherwise it's hard for us to use within tidyverse/R-lib.
The text was updated successfully, but these errors were encountered: