Skip to content

Commit

Permalink
Fixed table column renaming on empty frames
Browse files Browse the repository at this point in the history
  • Loading branch information
pinduzera committed May 22, 2023
1 parent 28903dc commit 7000ab6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/rswat_rest.R
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,9 @@ REST_CASTable <- setRefClass(
out <- do.call(rbind.data.frame, out)

if (length(names(out)) > 0 ) {
names(out) <- col.names
names(out) <- col.names
}

return( out )
},

Expand Down

0 comments on commit 7000ab6

Please sign in to comment.