[R-sig-Geo] connection error when calling maxent()
rafael.wueest at wsl.ch
Thu Jan 12 15:27:35 CET 2012
> It appears that the MaxEnt output file gets overwritten by another process.
Yes, I also have this impression after some testing (e.g. the temporary raster directories got emptied every time I started a new R raster session in parallel).
The problem disappeared when I updated to R 2.13.2, so no more worries from my side!
Many thanks for the help and the development of raster and associates - it's just great!
On 12.01.2012, at 01:33, Robert J. Hijmans wrote:
> Please send more info about what you are doing. It appears that the MaxEnt output file gets overwritten by another process. Can you also send your sessionInfo() (after first updating R to a more recent version)?
> On Wed, Jan 4, 2012 at 8:52 AM, rafael.wueest <rafael.wueest at wsl.ch> wrote:
> Hi Folks
> when I am trying to call the maxent() function within a function I created,
> I am getting the following error:
> Error in file(con, "r") : cannot open the connection
> In addition: Warning message:
> In file(con, "r") :
> cannot open file
> No such file or directory
> I am here also pasting some output of
> 7: file(con, "r")
> 6: readLines(paste(dirout, "/species.lambdas", sep = ""))
> 5: unlist(readLines(paste(dirout, "/species.lambdas", sep = "")))
> 4: .local(x, p, ...)
> 3: maxent(background, occ, args = me.args) at run4models_restios.r#558
> I am using JGR on a Mac and downloaded the newest dismo (CRAN sources) and
> maxent version (see below).
> Can anyone help me? I am happy to provide more detailed information...
> This is MaxEnt version 3.3.3k
> R version 2.12.2 (2011-02-25)
> Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)
>  C
> attached base packages:
>  splines stats graphics grDevices utils datasets methods
>  base
> other attached packages:
>  gbm_1.6-3.1 survival_2.36-5 gam_1.04.1
>  PresenceAbsence_1.1.5 maptools_0.8-10 lattice_0.19-33
>  foreign_0.8-42 rgdal_0.6-33 dismo_0.7-14
>  raster_1.9-13 sp_0.9-84 JGR_1.7-7
>  iplots_1.1-4 JavaGD_0.5-4 rJava_0.9-1
> loaded via a namespace (and not attached):
>  grid_2.12.2 tools_2.12.2
> Warning message:
> 'DESCRIPTION' file has 'Encoding' field and re-encoding is not possible
> View this message in context: http://r-sig-geo.2731867.n2.nabble.com/connection-error-when-calling-maxent-tp7151125p7151125.html
> Sent from the R-sig-geo mailing list archive at Nabble.com.
> R-sig-Geo mailing list
> R-sig-Geo at r-project.org
Swiss Federal Research Institute WSL
+41 44 7392126
rafael.wueest at wsl.ch
More information about the R-sig-Geo