Skip to content

Commit

Permalink
remove file extension in outrider module (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
jemten committed Nov 13, 2020
1 parent f0c37ca commit 0470011
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ suppressPackageStartupMessages({
library(data.table)
library(dplyr)
library(magrittr)
library(tools)
})

ods <- readRDS(snakemake@input$ods)
Expand Down Expand Up @@ -55,7 +56,7 @@ message("outrider fitting finished")

# Save the new ods with a date stamp
op <- snakemake@output$ods
op_date <- paste0(strsplit(op, "\\.")[[1]][1], "-", format(Sys.time(), "%Y%m%d") , ".Rds")
op_date <- paste0(file_path_sans_ext(op), "-", format(Sys.time(), "%Y%m%d") , ".Rds")
saveRDS(ods, op_date)

# Create a link to the previous file
Expand Down

0 comments on commit 0470011

Please sign in to comment.