-
Notifications
You must be signed in to change notification settings - Fork 20
Getting make to work on Windows NOT through RStudio #58
Comments
We can get rid of the Pandoc dependency if we use |
Strong preference for |
Okay. I'll update the activity. |
Should that be |
I'm editing it very actively in the branch FYI. https://github.com/STAT545-UBC/STAT545-UBC.github.io/tree/split-automation-content |
This might be related to whether the shell is |
I'd prefer to use Git Bash (see above) to standardize the shell. Another options is to use |
Thanks for your help troubleshooting, Dean! |
I like @sjackman 's point about using |
|
@jennybc If installing msysGit solves all the troubles with |
@sjackman Yes I concur it's looking like we should recommend installation of It is nice to provide R-based workarounds as a Plan B, so people can complete the activity even if they are experiencing glitches with the Windows shell. |
After a couple hours of fighting with my machine, I was able to get the full pipeline from class to run on a Windows machine via shell (rather than using RStudio)
It is much easier to use RStudio, but using the shell is more powerful and you have more granular control over what targets to build. These are the steps you have to take if you want to build the sample Makefile from class in the Windows Command Prompt or git shell:
Rscript
lives on your machine and include it in your PATH (ie.C:\Program Files\R\R-3.1.0\bin
. You need this so that all theRscript
commands will workpandoc
lives on your machine and include it in your PATH (ie.C:\Program Files\RStudio\bin\pandoc
). You need this to convert to/from markdown"
with\"
in your Makefile. This unfortunately means that you won't be able to run the same Makefile both using RStudio and using a shell, because RStudio requires your Makefile to look "normal" but the windows shell needs them to be escaped. @sjackman @jennybc maybe there's a better solution for this?rm
commands withdel
. If using Git Bash shell, leave therm
commands as-isHopefully I didn't forget a step. Now you can
make clean all
from the command line hopefullyThe text was updated successfully, but these errors were encountered: