-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.R
35 lines (27 loc) · 1 KB
/
build.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#This script builds the Smoke Avoidance project.
#It should be run once each time a user begins a
#new R session to work on the project.
########################
#Load init functions
source("functions/init_functions.R")
#Loading and installing packages
init.pacs(c("tidyverse","lubridate","foreign","mice","foreach","doSNOW",
"sf","raster","USAboundaries","leaflet","viridis","scales","rgdal",
"conflicted","htmlwidgets"))
#Defining conflict preferences
conflict_prefer("filter", "dplyr")
conflict_prefer("select", "dplyr")
#########################
#Setting project map projections
readin.proj=4269 #because it works with the lat and lons provided
plot.proj=2163 #2227 - in feet
#########################
#Loading project helper functions
run.script("functions")
#################
if(!dir.exists("data")){
dir.create("data")
message("The data folder has been created. Download the data and place it in the data folder.")
}
#Load cached data if exists otherwise build data
cache.or.build()