This is an outline of what Luis helped me figure out, for general consumption:
*** using
the current dev version of dartR (Version 2.3.3)
1. Download newhybrids from https://github.com/green-striped-gecko/dartR/tree/master/binaries. You will need to download the exe file in the ‘pc’ subfolder
2. Place
newhybrids IN your working directory. The process does not work if newhybrids
is in a different directory, as newhybrids is trying to look at files that are
in the same folder as itself. You can either make lots of copies of newhybrids
in your working folders, or change the working directory to where newhybrids is
stored. Option two means your newhybrids outputs will be written to this new
directory.
3. Run
newhybrids via the r code :
m <-
gl.nhybrids(testset.gl, outfile='nhyb.txt',
p0=NULL, p1=NULL,
nhyb.directory=getwd(),
BurnIn=100,
sweeps=100,
verbose=3)
Things to note:
If you have spaces anywhere in your path name it won’t work. Newhybrids does not understand spaces in path names.
Sometimes firewalls will prevent the exe file running, if this happens you may have to provide permissions through the firewall program