stan-dev / cmdstanr

CmdStanR: the R interface to CmdStan
https://mc-stan.org/cmdstanr/
Other
144 stars 63 forks source link

Make use of untar() platform independent in `install_cmdstan()` #1034

Closed jgabry closed 1 week ago

jgabry commented 1 week ago

Submission Checklist

Summary

Fixes #1029 Uses @WardBrian suggestion of switching untar's exdir to point to the parent directory, which would allow us to

drop the --strip-components flag entirely, and then it wouldn't matter which tar implementation gets used, including internal. That way the testing/verifying the change is platform independent

Copyright and Licensing

Please list the copyright holder for the work you are submitting (this will be you or your assignee, such as a university or company): Columbia University

By submitting this pull request, the copyright holder is agreeing to license the submitted work under the following licenses:

WardBrian commented 1 week ago

@jgabry not sure if you wanted a formal "review" or not since this is so small, but I can confirm this is exactly the change I was imagining

jgabry commented 1 week ago

Thanks. I think this is good to go then. I don't think we've had anyone test this on older Windows (@yizhang-yiz tested it for me on Windows 11), but it sounds like separately testing on Windows 10 shouldn't be necessary. Or do you think we should find someone running Windows 10 to be extra safe?

WardBrian commented 1 week ago

Should be fine I think -- if this doesn't work, the bug would be in R's untar, since you're not passing anything bespoke any longer

jgabry commented 1 week ago

Going to go ahead and merge this since it's passing and has been tested by multiple users.