project-gen3sis / R-package

Repository of the R-packageGen3sis
https://project-gen3sis.github.io/R-package/
GNU General Public License v3.0
29 stars 9 forks source link

calling of plots from observer not working #32

Closed ohagen closed 4 years ago

ohagen commented 4 years ago

If you add the following lines to the observer function:

plot_richness(species, landscape)
plot_landscape(landscape)
plot_species_presence(species[[1]], landscape)"

run

run_simulation(config = "./inst/extdata/WorldCenter/config/config_worldcenter.R", 
+                     landscape = "./inst/extdata/WorldCenter/landscape",
+                     call_observer = "all", output_directory = "YOURTEMPDIRHERE")

breaks with error:

[1] "config found: ./inst/extdata/WorldCenter/config/config_worldcenter.R"
[1] "landscape found: ./inst/extdata/WorldCenter/landscape"
[1] "output directory is: C:/temp/config_worldcenter"
Error in rownames(landscape[["coordinates"]]) : 
  object 'landscape' not found