Closed annychih closed 4 years ago
This issue has been solved. The Makefile commands work in Terminal but not all local versions of RStudio due to local configurations.
Firas provided this link for local solutions: https://github.ubc.ca/MDS-2019-20/DSCI_522_dsci-workflows_students/issues/8
In order for the Python script to be executed in the Makefile, we needed to change 'python' to the PATH where the Python that I want to use lives. This obviously won't work for everyone who downloads the project and wants to run it from their own computers (which have a different path for Python). How do we fix this?
example from Makefile: data/clean_data.csv : data/fsa_2017-2018.csv data/fsa_2007-2016.csv src/clean_data.py /opt/miniconda3/envs/mds/bin/python src/clean_data.py --raw_data1='data/fsa_2007-2016.csv' --raw_data2='data/fsa_2017-2018.csv' --local_path='data/clean_data.csv'