Skip to content

Commit 7f285e6

Browse files
Merge pull request #19 from wdwatkins/master
formula fix
2 parents ef85c9d + 92891aa commit 7f285e6

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

DESCRIPTION

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
Package: rloadest
22
Type: Package
33
Title: River Load Estimation
4-
Version: 0.4.3
5-
Date: 2015-12-03
6-
Author: Dave Lorenz, Rob Runkel, Laura De Cicco
4+
Version: 0.4.4
5+
Date: 2017-01-10
6+
Authors@R: c( person("Dave", "Lorenz", email = "lorenz@usgs.gov", role = "cre"),
7+
person("Rob", "Runkel", role = "aut"),
8+
person("Laura", "De Cicco", role = "aut"),
9+
person("David", "Watkins", role = "ctb"))
710
Maintainer: Dave Lorenz <lorenz@usgs.gov>
811
Description: Collection of functions to make constituent load estimations
912
based on the LOADEST program.
@@ -17,10 +20,11 @@ Depends:
1720
Imports:
1821
lubridate,
1922
stats,
20-
segmented
23+
segmented
2124
Suggests:
2225
dataRetrieval,
2326
EGRET,
2427
survival
2528
LazyLoad: yes
2629
LazyData: yes
30+
RoxygenNote: 5.0.1

R/loadReg.R

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,10 @@ loadReg <- function(formula, data, subset, na.action, flow, dates,
8080
## Make sure that the formula is a formula and not a symbol--this
8181
# improves output and subsequent formula references
8282
if (typeof(call$formula) == "symbol") {
83-
call$formula <- formula(Terms)
83+
#terms above is null
84+
#formulas were not being converted from symbols, and causing errors at ~127
85+
call$formula <- formula
86+
m[['formula']] <- formula
8487
}
8588
## remove components not needed for model.frame
8689
m$flow <- m$dates <- m$flow.units <- m$conc.units <- NULL

0 commit comments

Comments
 (0)