remake icon indicating copy to clipboard operation
remake copied to clipboard

yml or yaml

Open aammd opened this issue 9 years ago • 5 comments

recent versions of Rstudio (0.99.903 or so) warn users that the file extension ought to be .yaml not .yml. This is going to cause problems (as it did for me) because remake expects precisely named filenames. Perhaps remake could be tweaked to accept both .yml and .yaml endings?

aammd avatar Sep 08 '16 13:09 aammd

it does work with .yaml, but you have to use the remake_file arg in remake::make and other functions. So

remake::make(remake_file='proper_YAML.yaml')

should work

jordansread avatar Sep 08 '16 13:09 jordansread

Alas, the file name of any remake_sources file is baked right in

Unfortunately, this doesn't result in a "no remake_sources file found" sort of error (which perhaps it should?) but rather in a "package X not available for R version X.X.X" error. This is because if there is no file called exactly remake_sources.yml , all missing package names are passed to install.packages(), which naturally checks CRAN.

Not realizing this, I thought everything was working and that there was an error in the off-cran package, not in my file names 😿

aammd avatar Sep 08 '16 13:09 aammd

ahh, sorry, didn't realize it was more complex than what I was thinking about.

jordansread avatar Sep 08 '16 13:09 jordansread

  1. This should be an easy fix, though the logic is tedious (what do you do if both are found, etc). Perhaps it should also be tweakable from the remake file with something like
package_sources: my_sources.yaml

.2. why on earth is rstudio complaining about that extension? It's perfectly cromulent. Perhaps the embiggened extension is more cromulent, idk

richfitz avatar Sep 08 '16 15:09 richfitz

.2. It's a month and a half later, and I just found out that this is a Simpson's reference. I feel cromulent, noble, and embiggened of spirit.

wlandau avatar Oct 23 '16 22:10 wlandau