R/zzz.R

Defines functions .onAttach .onLoad

VWPreEnv <- new.env()

.onLoad <- function(...) {
  # Check R version
if(getRversion() >= "2.15.1") {  
  # Global vars
  utils::globalVariables(c(".", "%>%", "Time", "Event", 
  "IA_0_C", "IA_1_C", "IA_2_C", "IA_3_C", "IA_4_C", 
  "IA_5_C", "IA_6_C", "IA_7_C", "IA_8_C", "Prop", "wt",
  "DS", "NSamples", "starts_with", "se", "Cond", "Cond1", "Cond2", 
  "Diff", "IA_ID", "TIMESTAMP", "VALUE", "IA", "Item", "Subject", "Avg", 
  "Zscore", "StDev", "EyeSelected", "EyeRecorded", "LEFT_INTEREST_AREA_LABEL", 
  "LEFT_INTEREST_AREA_ID", "RIGHT_INTEREST_AREA_LABEL", 
  "RIGHT_INTEREST_AREA_ID", "Variable", "binomial", "coef", "plogis",
  "predict", "sd", "setNames", "capture.output",
  "Align", "HitIDL", "HitIDR", "HitLabelL", "HitLabelR", "LEFT_GAZE_X",
  "LEFT_GAZE_Y", "Present", "RIGHT_GAZE_X", "RIGHT_GAZE_Y", 
  "SAMPLE_MESSAGE", "CalcCol", "Comp", "Condition", "CustCond1", "CustCond2",
  "Custom", "DC1", "DC1m", "DC1sd", "DC2", "DC2m", "DC2sd", "IA_0_P", "IA_1_P", 
  "IA_2_P", "IA_3_P", "IA_4_P", "IA_5_P", "IA_6_P", "IA_7_P", "IA_8_P", 
  "IAmean", "Obs", "degfree", "error_lower", "error_upper", "group", "meanDiff", 
  "n1", "n2", "Avg2", "StDev2", "EYE_TRACKED", "IA_Data",
  "Columnmean", "Data", "Eye", "LEFT_IA_ID", "LEFT_IA_LABEL", "Lev1", "Lev2",
  "Mean", "N", "RIGHT_IA_ID", "RIGHT_IA_LABEL", "Start_Time", "left", 
  "right", "In_Blink", "LEFT_IN_BLINK", "LEFT_IN_SACCADE", "RIGHT_IN_BLINK",
  "RIGHT_IN_SACCADE", "Screen", "Trackloss"), add = FALSE)
  }
}

.onAttach <- function(...) { 
	name <- utils::packageDescription("VWPre", fields = c("Package", "Version"))[[1]]
	version <- utils::packageDescription("VWPre", fields = c("Package", "Version"))[[2]]
	hello <- paste("This is ", name, " version ", version, ". See NEWS for important changes. \nFor package information, type 'help(package=\"VWPre\")'.", " ", "\nTo cite this package, type 'citation(package=\"VWPre\")'.", sep="")
  packageStartupMessage(hello)
}

Try the VWPre package in your browser

Any scripts or data that you put into this service are public.

VWPre documentation built on Jan. 11, 2020, 9:28 a.m.