Hello!

I'm trying to run a niche.equivalency.test and keep getting the following
error:
Error in file(fname, "r") : cannot open the connection
In addition: Warning message:
In file(fname, "r") :
  cannot open file 'C:/Users/Dana/Desktop/NicheIDresults/out/Populus
arizona_proj.asc': No such file or directory

Here's my code:
app<-paste("C:/Users/Dana/Desktop/maxent/maxent.jar", sep="")
files<-list.files(path =
"G:/Research/Climate/WorldClim/Current/world/Fremont_genetics/AllPops/ascii/subset1",
pattern = '[.]asc', all.files = FALSE,
           full.names = FALSE, recursive = FALSE,
           ignore.case = FALSE, include.dirs = FALSE, no.. = FALSE)
env<-stack(files)
as(env,'SpatialGridDataFrame')
p<-read.csv("FremontPops_CAAZ.csv")
dir<-paste("C:/Users/Dana/Desktop/NicheIDresults")
test<-niche.equivalency.test(p, env, n=99, maxent.exe, dir)

Maxent runs fine, and I can see the Populus arizona_proj.asc file in the
"out" directory.

Any ideas on what is going on?

Thank you!
Cheers,
Dana
-- 
Dana Ikeda, PhD Candidate
Cottonwood Ecology Group
Department of Biological Sciences
Northern Arizona University
Flagstaff, AZ 86011

	[[alternative HTML version deleted]]

