Skip to content

Instantly share code, notes, and snippets.

@rhilfi
Created October 16, 2021 09:19
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save rhilfi/f87ccad23ad1dbb19f2ab3b221c8dd13 to your computer and use it in GitHub Desktop.
save_file_with_date_time #R
library(rio)
library(tidyverse)
# the two lines with str_replace just show that the author of this code does not know how to correctly format date_time. Sorry for that.
st=format(Sys.time(), "%a %b %d %X %Y")
st=str_replace_all(st, ":","_")
st=str_replace_all(st, " ","_")
rio::export(check_error_start_intervention,paste("../02_data_checks/start_intervention_before_eval_initiale",st,".xlsx", sep="_"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment