Turn off warnings for tidyverse and dplyr
parent
c41d24df45
commit
86509207ac
|
@ -1,6 +1,8 @@
|
|||
|
||||
local({
|
||||
|
||||
options(tidyverse.quiet = TRUE)
|
||||
|
||||
# the requested version of renv
|
||||
version <- "0.10.0"
|
||||
|
||||
|
@ -302,7 +304,7 @@ local({
|
|||
renv_bootstrap_validate_version(version)
|
||||
|
||||
# load the project
|
||||
renv::load(project)
|
||||
renv::load(project, quiet = TRUE)
|
||||
|
||||
TRUE
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
source("renv/activate.R")
|
||||
|
||||
library(tidyr)
|
||||
library(dplyr)
|
||||
library("dplyr", warn.conflicts = F)
|
||||
library(stringr)
|
||||
library("rvest")
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
library("tidyverse")
|
||||
library("lubridate")
|
||||
library("lubridate", warn.conflicts = F)
|
||||
options(scipen=999)
|
||||
|
||||
day_type_delay <- function(day_type, include_past_periodic_segments){
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
source("renv/activate.R")
|
||||
library(RMySQL)
|
||||
library(dplyr)
|
||||
library("dplyr", warn.conflicts = F)
|
||||
library(readr)
|
||||
library(stringr)
|
||||
library(yaml)
|
||||
|
|
|
@ -2,7 +2,7 @@ source("renv/activate.R")
|
|||
source("src/data/unify_utils.R")
|
||||
library(RMySQL)
|
||||
library(stringr)
|
||||
library(dplyr)
|
||||
library("dplyr", warn.conflicts = F)
|
||||
library(readr)
|
||||
library(yaml)
|
||||
library(lubridate)
|
||||
|
|
|
@ -1,18 +0,0 @@
|
|||
source("renv/activate.R")
|
||||
library("dplyr")
|
||||
|
||||
if(!is.null(snakemake@input[["visible_access_points"]]) && is.null(snakemake@input[["connected_access_points"]])){
|
||||
wifi_data <- read.csv(snakemake@input[["visible_access_points"]], stringsAsFactors = FALSE)
|
||||
wifi_data <- wifi_data %>% mutate(connected = 0)
|
||||
} else if(is.null(snakemake@input[["visible_access_points"]]) && !is.null(snakemake@input[["connected_access_points"]])){
|
||||
wifi_data <- read.csv(snakemake@input[["connected_access_points"]], stringsAsFactors = FALSE)
|
||||
wifi_data <- wifi_data %>% mutate(connected = 1)
|
||||
} else if(!is.null(snakemake@input[["visible_access_points"]]) && !is.null(snakemake@input[["connected_access_points"]])){
|
||||
visible_access_points <- read.csv(snakemake@input[["visible_access_points"]], stringsAsFactors = FALSE)
|
||||
visible_access_points <- visible_access_points %>% mutate(connected = 0)
|
||||
connected_access_points <- read.csv(snakemake@input[["connected_access_points"]], stringsAsFactors = FALSE)
|
||||
connected_access_points <- connected_access_points %>% mutate(connected = 1)
|
||||
wifi_data <- bind_rows(visible_access_points, connected_access_points) %>% arrange(timestamp)
|
||||
}
|
||||
|
||||
write.csv(wifi_data, snakemake@output[[1]], row.names = FALSE)
|
|
@ -1,6 +1,6 @@
|
|||
source("renv/activate.R")
|
||||
|
||||
library(dplyr)
|
||||
library("dplyr", warn.conflicts = F)
|
||||
library(tidyr)
|
||||
|
||||
all_sensors <- snakemake@input[["all_sensors"]]
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
source("renv/activate.R")
|
||||
library(dplyr)
|
||||
library("dplyr", warn.conflicts = F)
|
||||
library(readr)
|
||||
library(tidyr)
|
||||
library(purrr)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
source("renv/activate.R")
|
||||
library("dplyr")
|
||||
library("dplyr", warn.conflicts = F)
|
||||
library("tidyr")
|
||||
|
||||
phone_sensed_bins <- read.csv(snakemake@input[["phone_sensed_bins"]])
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
source("renv/activate.R")
|
||||
library(dplyr)
|
||||
library("dplyr", warn.conflicts = F)
|
||||
library(readr)
|
||||
library(tidyr)
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
library(dplyr)
|
||||
library("dplyr", warn.conflicts = F)
|
||||
library(stringr)
|
||||
|
||||
unify_ios_screen <- function(ios_screen){
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
source("renv/activate.R")
|
||||
source("src/features/utils/utils.R")
|
||||
library("dplyr")
|
||||
library("dplyr",warn.conflicts = F)
|
||||
library("tidyr")
|
||||
|
||||
sensor_data_files <- snakemake@input
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
source("renv/activate.R")
|
||||
|
||||
library("tidyr")
|
||||
library("dplyr")
|
||||
library("dplyr", warn.conflicts = F)
|
||||
|
||||
location_features_files <- snakemake@input[["location_features"]]
|
||||
location_features <- setNames(data.frame(matrix(ncol = 1, nrow = 0)), c("local_segment"))
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
source("renv/activate.R")
|
||||
library("dplyr")
|
||||
library("dplyr", warn.conflicts = F)
|
||||
|
||||
activity_recognition <- read.csv(snakemake@input[[1]])
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
source("renv/activate.R")
|
||||
library("dplyr")
|
||||
library("dplyr", warn.conflicts = F)
|
||||
|
||||
battery <- read.csv(snakemake@input[[1]])
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
library(dplyr)
|
||||
library("dplyr", warn.conflicts = F)
|
||||
library(tidyr)
|
||||
|
||||
compute_bluetooth_feature <- function(data, feature, day_segment){
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
source("renv/activate.R")
|
||||
library("dplyr")
|
||||
library("dplyr", warn.conflicts = F)
|
||||
library("stringr")
|
||||
|
||||
# Load Ian Barnett's code. Taken from https://scholar.harvard.edu/ibarnett/software/gpsmobility
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
source("renv/activate.R")
|
||||
|
||||
library(dplyr)
|
||||
library("dplyr", warn.conflicts = F)
|
||||
library(tidyr)
|
||||
library(stringr)
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
library(dplyr)
|
||||
library("dplyr", warn.conflicts = F)
|
||||
|
||||
compute_wifi_feature <- function(data, feature, day_segment){
|
||||
data <- data %>% filter_data_by_segment(day_segment)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
library(dplyr)
|
||||
library("dplyr", warn.conflicts = F)
|
||||
|
||||
compute_wifi_feature <- function(data, feature, day_segment){
|
||||
data <- data %>% filter_data_by_segment(day_segment)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
source("renv/activate.R")
|
||||
library("tibble")
|
||||
library("dplyr")
|
||||
library("dplyr", warn.conflicts = F)
|
||||
library("tidyr")
|
||||
library("tibble")
|
||||
options(scipen=999)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
source("renv/activate.R")
|
||||
library(tidyr)
|
||||
library(dplyr)
|
||||
library("dplyr", warn.conflicts = F)
|
||||
|
||||
filter_participant_without_enough_days <- function(clean_features, days_before_threshold, days_after_threshold){
|
||||
clean_features$day_type <- ifelse(clean_features$day_idx < 0, -1, ifelse(clean_features$day_idx > 0, 1, 0))
|
||||
|
|
|
@ -2,11 +2,11 @@ source("renv/activate.R")
|
|||
|
||||
library(tidyr)
|
||||
library(purrr)
|
||||
library(dplyr)
|
||||
library("dplyr", warn.conflicts = F)
|
||||
library("methods")
|
||||
library("mgm")
|
||||
library("qgraph")
|
||||
library("dplyr")
|
||||
library("dplyr", warn.conflicts = F)
|
||||
library("scales")
|
||||
library("ggplot2")
|
||||
library("purrr")
|
||||
|
|
|
@ -2,7 +2,7 @@ source("renv/activate.R")
|
|||
|
||||
library(tidyr)
|
||||
library(purrr)
|
||||
library(dplyr)
|
||||
library("dplyr", warn.conflicts = F)
|
||||
library(stringr)
|
||||
|
||||
feature_files <- snakemake@input[["feature_files"]]
|
||||
|
|
Loading…
Reference in New Issue