Skip to content

Commit

Permalink
full vignette added to the package, but excluded from buildin it in R…
Browse files Browse the repository at this point in the history
…. GDAL added for Travis-CI
  • Loading branch information
hzambran committed Dec 18, 2019
1 parent 9fdb502 commit 1bb4a82
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ README.md
.git
.travis.yml
_config.yml
vignettes/RFmerge-RainfallExample-full.Rmd
vignettes/RFmerge-RainfallExample-full.pdf
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Full vignette
vignettes/RFmerge-RainfallExample-full.Rmd
vignettes/RFmerge-RainfallExample-full.pdf

# History files
.Rhistory
.Rapp.history
Expand Down
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ BugReports: https://github.com/hzambran/RFmerge/issues
LazyLoad: yes
NeedsCompilation: no
Repository: CRAN
Packaged: Wed Dec 18 16:37:21 -03 2019; hzambran
Packaged: Wed Dec 18 17:37:21 -03 2019; hzambran
2 changes: 1 addition & 1 deletion man/RFmerge-package.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Version: \tab 0.1-1\cr
Date: \tab 2019-12-18\cr
License: \tab GPL >= 3 \cr
LazyLoad: \tab yes\cr
Packaged: \tab Wed Dec 18 16:37:21 -03 2019; MZB \cr
Packaged: \tab Wed Dec 18 17:37:21 -03 2019; MZB \cr
BuiltUnder: \tab R version 3.6.2 (2019-12-12) -- "Dark and Stormy Night" ; x86_64-pc-linux-gnu (64-bit) \cr
}
%%~~ An overview of how to use the package, including the most important functions ~~
Expand Down
7 changes: 5 additions & 2 deletions vignettes/RFmerge-RainfallExample-minimal.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -353,8 +353,11 @@ nse.table <- data.frame(ID=eval.gis[["ID"]], CHIRPS=tmp, PERSIANN_CDR=tmp, RF_M
# Computing the NSE between the observed rainfall measured in each one of the raingauges
# of the training dataset and CHIRPSv2, PERSIANN-CDR, the merged product `rfmep`:
for (i in 1:nsres)
nse.table[, (i+1)] = NSE(sim= sres[[i]], obs = eval.ts)
for (i in 1:nsres) {
ldates <- time(eval.ts)
lsim <- zoo(sres[[i]], ldates)
nse.table[, (i+1)] = NSE(sim= lsim, obs= eval.ts)
} # FOR end
# Boxplot with a graphical comparison
sres.cols <- c("powderblue", "palegoldenrod", "mediumseagreen")
Expand Down

0 comments on commit 1bb4a82

Please sign in to comment.