Closed sbmarsh-USGS closed 6 years ago
Troubleshooting stagehydrograph.Rmd
Stops at Line 26. Error in nchar(gageheight_filepath) : object 'gageheight_filepath' not found
Looking in workflow-functions.R, line 46: gageheight_filepath <- getGageHeightFilePath(siteNumber)
gageheight_filepath <- getGageHeightFilePath(siteNumber)
And line 97: getGageHeightFilePath <- function(siteNumber){ library(dplyr) siteDetails <- read.csv("data/plotNames_by_site.csv", colClasses = c("character", "character", rep("logical", 5), "character"), stringsAsFactors = FALSE) siteDetails_site <- filter(siteDetails, site_no == siteNumber) siteFilePath <- siteDetails_site$gageHeight_files return(siteFilePath) }
getGageHeightFilePath <- function(siteNumber){ library(dplyr) siteDetails <- read.csv("data/plotNames_by_site.csv", colClasses = c("character", "character", rep("logical", 5), "character"), stringsAsFactors = FALSE) siteDetails_site <- filter(siteDetails, site_no == siteNumber) siteFilePath <- siteDetails_site$gageHeight_files return(siteFilePath) }
This works now. I believe it was an issue with an update to R and R Studio on my computer and reloading the appropriate packages.
Troubleshooting stagehydrograph.Rmd
Stops at Line 26. Error in nchar(gageheight_filepath) : object 'gageheight_filepath' not found
Looking in workflow-functions.R, line 46:
gageheight_filepath <- getGageHeightFilePath(siteNumber)
And line 97:
getGageHeightFilePath <- function(siteNumber){ library(dplyr) siteDetails <- read.csv("data/plotNames_by_site.csv", colClasses = c("character", "character", rep("logical", 5), "character"), stringsAsFactors = FALSE) siteDetails_site <- filter(siteDetails, site_no == siteNumber) siteFilePath <- siteDetails_site$gageHeight_files return(siteFilePath) }