[R] phlyloclim help

Clint Bowman clint at ecy.wa.gov
Wed Mar 5 00:44:17 CET 2014


I suspect the space in the filename could be the throwing the parser 
off--you may need some "" around the filename or fill the space with an 
underscore.

Clint

Clint Bowman			INTERNET:	clint at ecy.wa.gov
Air Quality Modeler		INTERNET:	clint at math.utah.edu
Department of Ecology		VOICE:		(360) 407-6815
PO Box 47600			FAX:		(360) 407-7534
Olympia, WA 98504-7600

         USPS:           PO Box 47600, Olympia, WA 98504-7600
         Parcels:        300 Desmond Drive, Lacey, WA 98503-1274

On Mon, 3 Mar 2014, Dana Ikeda wrote:

> 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]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>




More information about the R-help mailing list