Closed machow closed 1 year ago
Currently, it seems like R and python pins treat api_version differently:
0L
1L
x.y.z
1
1.0
It seems like if we want to preserve compatibility with the current R pins, we have two safe options for api_version:
0
2
1.1
2.0
And then one crazy option--three parts, allowing the string "x.y.z"-- since in R:
"x.y.z"
"0" > 1
"1" > 1
"1.0" > 1
(Also I can't remember exactly how these comparisons work, so could be missing some bad behavior; but it should be okay as long as "2.0.0" etc > 1?)
"2.0.0" etc > 1
This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue.
Currently, it seems like R and python pins treat api_version differently:
0L
,1L
, but reads it as a numeric (screenshot below)x.y.z
in the future1
), and has a type hint that suggests it expects an integer1.0
)Options
It seems like if we want to preserve compatibility with the current R pins, we have two safe options for api_version:
0
,1
,2
, etc..1.1
,2.0
And then one crazy option--three parts, allowing the string
"x.y.z"
-- since in R:"0" > 1
-> False"1" > 1
-> False"1.0" > 1
-> True(Also I can't remember exactly how these comparisons work, so could be missing some bad behavior; but it should be okay as long as
"2.0.0" etc > 1
?)