Closed Bisaloo closed 3 months ago
Tests failures are due to https://github.com/r-lib/testthat/issues/1969.
@Bisaloo Once again, thank you very much for the PR. Most of them LGTM. I still have to actually stress test the removal of the setwd()
. Those code is not automatically checked and last time I checked, setwd()
must still be there. #319
For this, NA_character_
is surely an unexpected side effect and should be excluded. So, I think it's safe to use endsWith()
here. I will open another issue related to this.
One potential last thing is that
find_compress()
could use theendsWith()
base R function:https://github.com/gesistsa/rio/blob/588971f7c5558805c1e7efc2f89cc0e1f245a4c7/R/compression.R#L1-L35
But from my (admittedly limited) testing, it seems that
NA_character_
is a possible value forf
, leading to the creation of a file namedNA
. This meansendsWith()
is not a good fit here.But is it an explicit design choice to allow
NA_character_
or an unexpected side effect?
@Bisaloo Once again, thank you very much for the PR. Most of them LGTM. I still have to actually stress test the removal of the
setwd()
. Those code is not automatically checked and last time I checked,setwd()
must still be there. #319
OK, This one should be fine.
@Bisaloo Please add yourself to Authors@R
. Then I will merge this.
One potential last thing is that
find_compress()
could use theendsWith()
base R function:https://github.com/gesistsa/rio/blob/588971f7c5558805c1e7efc2f89cc0e1f245a4c7/R/compression.R#L1-L35
But from my (admittedly limited) testing, it seems that
NA_character_
is a possible value forf
, leading to the creation of a file namedNA
. This meansendsWith()
is not a good fit here.But is it an explicit design choice to allow
NA_character_
or an unexpected side effect?