File tree 4 files changed +133
-128
lines changed
4 files changed +133
-128
lines changed Original file line number Diff line number Diff line change 1
- # remotes::install_github('fawda123/rsmartsheet'))
1
+ # remotes::install_github('fawda123/rsmartsheet')
2
2
library(rsmartsheet )
3
3
library(dplyr )
4
4
5
+ maxyr <- 2024
6
+
5
7
# smartsheet import ---------------------------------------------------------------------------
6
8
7
9
smrkey <- Sys.getenv(" smartsheets_key" )
@@ -20,6 +22,7 @@ gpraraw <- get_sheet_as_csv('TBEP_NEPORT_Restoration_Data') %>%
20
22
# select columns in correct order
21
23
gpra <- gpraraw %> %
22
24
filter(Status == ' Entered' ) %> %
25
+ filter(Federal.Fiscal.Year == maxyr ) %> %
23
26
rename(
24
27
Federal_Fiscal_Year = Federal.Fiscal.Year ,
25
28
Project_Name = Project.Name ,
@@ -119,10 +122,10 @@ gpra <- gpraraw %>%
119
122
AfterPhotoCaption
120
123
)
121
124
122
- # add to pre-smartsheet entries ---------------------------------------------------------------
125
+ # add entries to main file ----- ---------------------------------------------------------------
123
126
124
- # read original
125
- orig <- read.csv(here :: here(' data-raw/ restoration-noedit .csv' ), stringsAsFactors = F )
127
+ # read main file
128
+ orig <- read.csv(here :: here(' restoration.csv' ), stringsAsFactors = F )
126
129
127
130
# add smartsheet to original
128
131
# change Enhancement to Maintenance
Original file line number Diff line number Diff line change 1
1
Version: 1.0
2
+ ProjectId: 18d3801b-daf8-4aff-88ad-ff18ec79aaad
2
3
3
4
RestoreWorkspace: Default
4
5
SaveWorkspace: Default
Original file line number Diff line number Diff line change
1
+ ` restoration_noedit.csv ` is restoration projects prior to preparing them on Smartsheet and was used in a previous workflow. Do not manipulate this file.
You can’t perform that action at this time.
0 commit comments