diff --git a/R/differences.R b/R/differences.R index 72a02e6..e6292f8 100644 --- a/R/differences.R +++ b/R/differences.R @@ -174,7 +174,7 @@ calculate_differences <- function(outFile,...){ write(jsonlite::toJSON(results, pretty = TRUE),output_path) # Save to Excel with multiple sheets - excel_output_path <- paste0(output_path, "/runs_comparison.xlsx") # Change this to your desired output path + excel_output_path <- paste0(dirname(output_path), "/runs_comparison.xlsx") # Change this to your desired output path write.xlsx(results, excel_output_path) }