Skip to content
This repository has been archived by the owner on Nov 1, 2021. It is now read-only.

Commit

Permalink
bug fix for permission download
Browse files Browse the repository at this point in the history
  • Loading branch information
boshek committed Apr 9, 2018
1 parent 04ccd1c commit e332e52
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# hydrolook 0.2.1
* `report_network_diagnostic` now asks for permission to download station history record.

# hydrolook 0.2.0
* general package tidying; removing many package dependencies
* added travis
Expand Down
6 changes: 5 additions & 1 deletion R/report_net_diagnostic.R
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,11 @@ report_net_diagnostic <- function(output_type = "pdf", PROV_TERR_STATE_LOC = "BC

## Only output status if rendering is successful
## Carry forward the answer until after the rendering
if(ans) readr::write_csv(wo_status, file.path("report/net_diag", "water_office_record.csv"))
if(exists("ans")){
if(ans == TRUE){
readr::write_csv(wo_status, file.path("report/net_diag", "water_office_record.csv"))
}
}



Expand Down

0 comments on commit e332e52

Please sign in to comment.