Skip to content

Commit

Permalink
Fix bug introduced in latest update
Browse files Browse the repository at this point in the history
  • Loading branch information
katieb1 committed Nov 2, 2023
1 parent 98caba9 commit 7b917eb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion R/saveDatasheet.R
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ setMethod("saveDatasheet", signature(ssimObject = "character"), function(ssimObj

#' @rdname saveDatasheet
setMethod("saveDatasheet", signature(ssimObject = "SsimObject"), function(ssimObject, data, name, fileData, append, forceElements, force, breakpoint, import, path) {

isFile <- NULL
x <- ssimObject
if (is.null(append)) {
Expand Down Expand Up @@ -207,6 +207,10 @@ setMethod("saveDatasheet", signature(ssimObject = "SsimObject"), function(ssimOb
stop() #handle this case
}
}

# Remove invalid column names\
cDat <- subset(cDat, select=-c(
ScenarioID,ProjectID,ScenarioName,ParentID,ParentName))

# convert factors to strings
for (kk in seq(length.out = ncol(cDat))) {
Expand Down

0 comments on commit 7b917eb

Please sign in to comment.