Skip to content

Commit

Permalink
Removing lubridate library call in favor of in-line
Browse files Browse the repository at this point in the history
  • Loading branch information
UMGCCFCSS committed Dec 28, 2024
1 parent 2d469ba commit 9be17f9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions TheScript_3L.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ git2r::pull(TheRepo)

#library(dplyr)
library(stringr)
library(lubridate)
#library(lubridate)
library(Luciernaga)
library(purrr)

Expand All @@ -49,7 +49,7 @@ MFIs <- list.files(StorageFolder, pattern="Bead", full.names=TRUE)
MFIs <- read.csv(MFIs[1], check.names=FALSE)
LastMFIItem <- MFIs %>% dplyr::slice(1) %>% dplyr::pull(DateTime)
#LastMFIItem <- MFIs %>% dplyr::slice(1) %>% dplyr::pull(DATE)
LastMFIItem <- ymd_hms(LastMFIItem)
LastMFIItem <- lubridate::ymd_hms(LastMFIItem)
#LastMFIItem <- mdy(LastMFIItem)
LastMFIItem <- as.Date(LastMFIItem)
PotentialMFIDays <- seq.Date(from = LastMFIItem, to = Today, by = "day")
Expand Down
4 changes: 2 additions & 2 deletions TheScript_4L.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ git2r::pull(TheRepo)

#library(dplyr)
library(stringr)
library(lubridate)
#library(lubridate)
library(purrr)

Instrument <- "4L"
Expand All @@ -48,7 +48,7 @@ MFIs <- list.files(StorageFolder, pattern="Bead", full.names=TRUE)
MFIs <- read.csv(MFIs[1], check.names=FALSE)
LastMFIItem <- MFIs %>% dplyr::slice(1) %>% dplyr::pull(DateTime)
#LastMFIItem <- MFIs %>% dplyr::slice(1) %>% dplyr::pull(DATE)
LastMFIItem <- ymd_hms(LastMFIItem)
LastMFIItem <- lubridate::ymd_hms(LastMFIItem)
#LastMFIItem <- mdy(LastMFIItem)
LastMFIItem <- as.Date(LastMFIItem)
PotentialMFIDays <- seq.Date(from = LastMFIItem, to = Today, by = "day")
Expand Down
4 changes: 2 additions & 2 deletions TheScript_5L.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ git2r::pull(TheRepo)

#library(dplyr)
library(stringr)
library(lubridate)
#library(lubridate)
library(purrr)

Instrument <- "5L"
Expand All @@ -48,7 +48,7 @@ MFIs <- list.files(StorageFolder, pattern="Bead", full.names=TRUE)
MFIs <- read.csv(MFIs[1], check.names=FALSE)
LastMFIItem <- MFIs %>% dplyr::slice(1) %>% dplyr::pull(DateTime)
#LastMFIItem <- MFIs %>% dplyr::slice(1) %>% dplyr::pull(DATE)
LastMFIItem <- ymd_hms(LastMFIItem)
LastMFIItem <- lubridate::ymd_hms(LastMFIItem)
#LastMFIItem <- mdy(LastMFIItem)
LastMFIItem <- as.Date(LastMFIItem)
PotentialMFIDays <- seq.Date(from = LastMFIItem, to = Today, by = "day")
Expand Down
6 changes: 3 additions & 3 deletions TheScript_CS.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ git2r::pull(TheRepo)

#library(dplyr)
library(stringr)
library(lubridate)
#library(lubridate)
library(purrr)

Instrument <- "CS"
Expand All @@ -35,7 +35,7 @@ StorageFolder <- file.path(WorkingFolder, "Archive")
Gains <- list.files(StorageFolder, pattern="Archived", full.names=TRUE)
Gains <- read.csv(Gains[1], check.names = FALSE)
LastGainItem <- Gains %>% dplyr::slice(1) %>% dplyr::pull(DateTime)
LastGainItem <- ymd_hms(LastGainItem)
LastGainItem <- lubridate::ymd_hms(LastGainItem)
LastGainItem <- as.Date(LastGainItem)
PotentialGainDays <- seq.Date(from = LastGainItem, to = Today, by = "day")
GainRemoveIndex <- which(PotentialGainDays == LastGainItem)
Expand All @@ -45,7 +45,7 @@ PotentialGainDays <- PotentialGainDays[-GainRemoveIndex]
MFIs <- list.files(StorageFolder, pattern="Bead", full.names=TRUE)
MFIs <- read.csv(MFIs[1], check.names=FALSE)
LastMFIItem <- MFIs %>% dplyr::slice(1) %>% dplyr::pull(DateTime)
LastMFIItem <- ymd_hms(LastMFIItem)
LastMFIItem <- lubridate::ymd_hms(LastMFIItem)
LastMFIItem <- as.Date(LastMFIItem)
PotentialMFIDays <- seq.Date(from = LastMFIItem, to = Today, by = "day")
MFIRemoveIndex <- which(PotentialMFIDays == LastMFIItem)
Expand Down

0 comments on commit 9be17f9

Please sign in to comment.