This suggests that you either have the maxent.jar file in the wrong place or with the wrong name. I suspect when you get the first two lines of the script to work you will be okay.
-Roy > On Jul 9, 2015, at 10:10 AM, annemariefische...@gmail.com wrote: > > Hi Roy, > > This example gives me the following error on trying to run the first line: > > Error: unexpected '&' in "jar <- paste(system.file(package="dismo"), > "/java/maxent.jar", sep=&" > > I am currently attempting to run using the code given in the below thread: > > http://r.789695.n4.nabble.com/phyloclim-help-td4633283.html > > Original Message > From: Roy Mendelssohn - NOAA Federal > Sent: Thursday 9 July 2015 18:48 > To: annemariefische...@gmail.com > Cc: David Winsemius; John Kane; R. Mailing List > Subject: Re: [R] Maxent Jarfile > ********************** "The contents of this message do not reflect any position of the U.S. Government or NOAA." ********************** Roy Mendelssohn Supervisory Operations Research Analyst NOAA/NMFS Environmental Research Division Southwest Fisheries Science Center ***Note new address and phone*** 110 Shaffer Road Santa Cruz, CA 95060 Phone: (831)-420-3666 Fax: (831) 420-3980 e-mail: roy.mendelss...@noaa.gov www: http://www.pfeg.noaa.gov/ "Old age and treachery will overcome youth and skill." "From those who have been given much, much will be expected" "the arc of the moral universe is long, but it bends toward justice" -MLK Jr. ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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.