USGS-R / lakeReport

Scripts and report generator
Other
0 stars 4 forks source link

stagehydrograph won't run...naming and/or nesting issues for gageheight_filepath? #84

Closed sbmarsh-USGS closed 6 years ago

sbmarsh-USGS commented 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)

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) }

sbmarsh-USGS commented 6 years ago

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.