Skip to content

Commit

Permalink
fix: write redundant states to one line
Browse files Browse the repository at this point in the history
Previously it would write to 5 columns, meaning only the last <5 states
were written to the optimum states text file.
  • Loading branch information
sof202 committed Apr 15, 2024
1 parent 984e840 commit f4fdc32
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Rscripts/RedundantStateChecker.R
Original file line number Diff line number Diff line change
Expand Up @@ -336,5 +336,9 @@ write("\nDetermined redundant states:", file = output_file, append = TRUE)
if (length(redundant_states) == 0) {
write("NONE", file = output_file, append = TRUE)
} else {
write(redundant_states, file = output_file, append = TRUE)
write(redundant_states,
file = output_file,
ncolumns = length(redundant_states),
append = TRUE
)
}

0 comments on commit f4fdc32

Please sign in to comment.