mirror of
https://github.com/dchakro/shared_Rscripts.git
synced 2026-05-17 09:12:16 -07:00
updates
This commit is contained in:
parent
79c0931dc5
commit
584ae98360
2 changed files with 82 additions and 0 deletions
|
|
@ -9,6 +9,15 @@ snippet beginr
|
|||
rm(list = ls())
|
||||
gc()
|
||||
library(data.table)
|
||||
today <- format(Sys.Date(),format = "%Y-%m-%d")
|
||||
slug <- "${2:SubFolderName}"
|
||||
workingDirectory <- paste0(today,"_",slug)
|
||||
setwd("~/ANALYSIS/")
|
||||
ifelse(test = dir.exists(workingDirectory),
|
||||
yes = message(paste0(workingDirectory," exists...")),
|
||||
no = dir.create(workingDirectory))
|
||||
setwd(workingDirectory)
|
||||
rm(today,workingDirectory,slug)
|
||||
${0}
|
||||
|
||||
snippet comment_date
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue