Skip to content

Commit

Permalink
Merge pull request #53 from agrobioinfoservices/devel
Browse files Browse the repository at this point in the history
fix-map-path
  • Loading branch information
kauedesousa authored Dec 13, 2020
2 parents 3ec25fd + 04fd1c2 commit a15ef8d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ClimMob.R
Original file line number Diff line number Diff line change
Expand Up @@ -430,8 +430,8 @@ org_lonlat <- tryCatch({
map_provider = "OpenStreetMap.Mapnik")

mapshot(trial_map,
url = paste0(outputpath, projname, "_trial_map.html"),
file = paste0(outputpath, projname, "_trial_map.png"))
url = paste0(outputpath, "/", projname, "_trial_map.html"),
file = paste0(outputpath, "/", projname, "_trial_map.png"))

}

Expand Down
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ ClimMob-analysis v1.1-2 (2020-12-13)
### Improvements

* Enable the production of reports when registration and data collection are performed at the same time (*e.g.* market tasting)
* Variables from multichoice questions in ODK are now decoded and displayed as factors.

### Changes in behaviour

Expand Down
2 changes: 1 addition & 1 deletion report/en/mainreport.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ if (isTRUE(geoTRUE)) {
if (extension == "html") {
trial_map
}else{
knitr::include_graphics(paste0(outputpath, projname, "_trial_map.png"))
knitr::include_graphics(paste0(outputpath, "/", projname, "_trial_map.png"))
}
}
```
Expand Down

0 comments on commit a15ef8d

Please sign in to comment.