Instructions
- Install Circuitscape...
- Find the path to your Circuitscape directory, mine is "C:\Program Files\Circuitscape"
- Open R (note that the " and ' are very important in the code. The system() R function treats spaces as if the next characters are additional arguments. For this reason you must quote locations in path names where there are spaces. A good example is Program Files, the path names of my cs_run.exe is 'C:/"Program Files"/Circuitscape/cs_run.exe' not 'C:/Program Files/Circuitscape/cs_run.exe')
This code should work, let me know if it doesn't!