KentonWhite / ProjectTemplate

A template utility for R projects that provides a skeletal project.
http://projecttemplate.net
GNU General Public License v3.0
622 stars 159 forks source link

fix pattern not intended for file extensions like .qs.hash #309

Closed gisler closed 3 years ago

gisler commented 3 years ago

Types of change

Pull request checklist


Proposed changes

When adding qs as a cache file format, I didn't notice that the pattern used in sub() within .cached.variables() is not suitable for file extensions like ".qs.hash". The proposed changes are supposed to fix this and to generally optimise said function. Furthermore, they also add a test checking if variable names are now assessed correctly from the cached file names.

KentonWhite commented 3 years ago

Thanks for this. I'm having trouble with the Travis checks. I'm going to add some empty commits to trigger a new build. Hopefully that works and I can merge this fix into the repo

gisler commented 3 years ago

@KentonWhite Hmm ... since Travis rather frequently seems to cause troubles: Have you looked into GitHub Actions yet? There are standard test workflows available for R packages. I just would have to look up the repo.

KentonWhite commented 3 years ago

@gisler thanks. It wasn’t a problem on the github end. Travis recently changed their account structures and my Travis account wasn’t set up correctly. All is good now.