Distance logo

Distance Developers Guide

Distance for Windows quick start setup

Jump down to:

Introduction

This page provides a summary of the commands needed to install Distance for Windows and its pre-requisites.

As there can be problems with spaces in paths, non-space alternatives for paths are given in brackets.


Distance for Windows

Download and install:

Check:

Create shortcut:

Select default project folder (optional):


R

Download and install:

Check:

Update PATH (optional):

Check:

If you experience problems with installing libraries into the default library location, library, under your R installation folder, then set library path (optional):


RStudio

Download and install:

Check:


Distance R packages

Install:

install.packages("mrds")
install.packages("Distance")
install.packages("dsm")  
install.packages("DSsim")

packageVersion("mrds")
packageVersion("Distance")
packageVersion("dsm")
packageVersion("DSsim")

Configure Distance for Windows and R

Set R:

Check:


Run Distance R MarkDown files

Run:

Check:


Examples of paths with spaces causing problems

Distance 6, in log tab:

C:\Program Files (x86)\DISTAN~1\ec "C:\Program Files
(x86)\DISTAN~1\MCDS.exe 0,
C:\Users\mjj\AppData\Local\Temp\dstEB57.tmp  \options
2>C:\Users\mjj\AppData\Local\Temp\dstEB56.tmp"   
-- Start of Analyis Engine Log File -- 
-- End of Analyis Engine Log File -- 
** Warning: Analysis engine wrote some output to the console error stream, reproduced below. **
-- Start of Console Error Stream -- 
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.

RStudio, in Install Required Packages window:

'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
Warning messages:
1: running command '"C:/Program Files/R/R-31~1.0/bin/x64/R" CMD
INSTALL -l "C:\Users\mjj\Local Documents\R\win-library"
"C:/Program
Files/RStudio/R/packages/rmarkdown_0.3.3_fd8dafdea0b4cc68b9dc3da0557a506e60e77ee2.tar.gz"'
had status 1