Skip to content

Commit

Permalink
fix bug in popevalid
Browse files Browse the repository at this point in the history
  • Loading branch information
tfrescino committed Oct 23, 2023
1 parent 397142e commit a182875
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions R/modGBpop.R
Original file line number Diff line number Diff line change
Expand Up @@ -508,8 +508,8 @@ modGBpop <- function(popType = "VOL",
"CHNG", "GRM", "GROW", "MORT", "REMV")
popType <- pcheck.varchar(var2check=popType, varnm="popType", gui=gui,
checklst=evalTyplst, caption="popType", multiple=FALSE, stopifnull=TRUE)
if (!is.null(popFilter2$evalid)) {
popevalid <- as.character(popFilter2$evalid)
popevalid <- as.character(popFilter2$evalid)
if (!is.null(popevalid)) {
substr(popevalid, nchar(popevalid)-1, nchar(popevalid)) <-
formatC(FIESTAutils::ref_popType[FIESTAutils::ref_popType$popType %in% popType, "EVAL_TYP_CD"],
width=2, flag="0")
Expand Down
4 changes: 2 additions & 2 deletions R/modMApop.R
Original file line number Diff line number Diff line change
Expand Up @@ -465,8 +465,8 @@ modMApop <- function(popType="VOL",
evalTyplst <- c("ALL", "CURR", "VOL", "LULC", "P2VEG", "INV", "DWM", "CHNG", "GRM")
popType <- pcheck.varchar(var2check=popType, varnm="popType", gui=gui,
checklst=evalTyplst, caption="popType", multiple=FALSE, stopifnull=TRUE)
if (!is.null(popFilter2$evalid)) {
popevalid <- as.character(popFilter2$evalid)
popevalid <- as.character(popFilter2$evalid)
if (!is.null(popevalid)) {
substr(popevalid, nchar(popevalid)-1, nchar(popevalid)) <-
formatC(FIESTAutils::ref_popType[FIESTAutils::ref_popType$popType %in% popType, "EVAL_TYP_CD"],
width=2, flag="0")
Expand Down
4 changes: 2 additions & 2 deletions R/modSApop.R
Original file line number Diff line number Diff line change
Expand Up @@ -373,8 +373,8 @@ modSApop <- function(popType="VOL",
evalTyplst <- c("ALL", "CURR", "VOL", "LULC", "P2VEG", "INV", "DWM", "CHNG", "GRM")
popType <- pcheck.varchar(var2check=popType, varnm="popType", gui=gui,
checklst=evalTyplst, caption="popType", multiple=FALSE, stopifnull=TRUE)
if (!is.null(popFilter2$evalid)) {
popevalid <- as.character(popFilter2$evalid)
popevalid <- as.character(popFilter2$evalid)
if (!is.null(popevalid)) {
substr(popevalid, nchar(popevalid)-1, nchar(popevalid)) <-
formatC(FIESTAutils::ref_popType[FIESTAutils::ref_popType$popType %in% popType, "EVAL_TYP_CD"],
width=2, flag="0")
Expand Down
4 changes: 2 additions & 2 deletions R/modWFpop.R
Original file line number Diff line number Diff line change
Expand Up @@ -471,8 +471,8 @@ modWFpop <- function(popType = "VOL",
evalTyplst <- c("ALL", "CURR", "VOL", "LULC", "P2VEG", "INV", "DWM", "CHNG", "GRM")
popType <- pcheck.varchar(var2check=popType, varnm="popType", gui=gui,
checklst=evalTyplst, caption="popType", multiple=FALSE, stopifnull=TRUE)
if (!is.null(popFilter2$evalid)) {
popevalid <- as.character(popFilter2$evalid)
popevalid <- as.character(popFilter2$evalid)
if (!is.null(popevalid)) {
substr(popevalid, nchar(popevalid)-1, nchar(popevalid)) <-
formatC(FIESTAutils::ref_popType[FIESTAutils::ref_popType$popType %in% popType, "EVAL_TYP_CD"],
width=2, flag="0")
Expand Down

0 comments on commit a182875

Please sign in to comment.