Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

calling of plots from observer not working #32

Closed
ohagen opened this issue Jun 19, 2020 · 0 comments
Closed

calling of plots from observer not working #32

ohagen opened this issue Jun 19, 2020 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@ohagen
Copy link
Member

ohagen commented Jun 19, 2020

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
@ohagen ohagen added the bug Something isn't working label Jun 19, 2020
@benj919 benj919 closed this as completed Jun 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants