File tree Expand file tree Collapse file tree 2 files changed +17
-6
lines changed Expand file tree Collapse file tree 2 files changed +17
-6
lines changed Original file line number Diff line number Diff line change @@ -158,12 +158,12 @@ stopifnot(all(!is.na(detections$receiver_id)))
158
158
metadata <- as.data.table(metadata )
159
159
160
160
# ### Save datasets
161
- terra :: writeRaster(map , " ./data/patter/input/ map.tif" )
162
- qs :: qsave(map_len , " ./data/patter/input/ map_len.qs" )
163
- qs :: qsave(start , " ./data/patter/input/ start.qs" )
164
- qs :: qsave(moorings , " ./data/patter/input/ moorings.qs" )
165
- qs :: qsave(detections , " ./data/patter/input/ detections.qs" )
166
- qs :: qsave(metadata , " ./data/patter/input/ metadata.qs" )
161
+ terra :: writeRaster(map , here_input( " map.tif" ) )
162
+ qs :: qsave(map_len , here_input( " map_len.qs" ) )
163
+ qs :: qsave(start , here_input( " start.qs" ) )
164
+ qs :: qsave(moorings , here_input( " moorings.qs" ) )
165
+ qs :: qsave(detections , here_input( " detections.qs" ) )
166
+ qs :: qsave(metadata , here_input( " metadata.qs" ) )
167
167
168
168
169
169
# ### End of code.
Original file line number Diff line number Diff line change
1
+ here_input <- function () {
2
+ here :: here(" data" , " patter" , " input" )
3
+ }
4
+
5
+ here_output <- function () {
6
+ here :: here(" data" , " patter" , " output" )
7
+ }
8
+
9
+ os_linux <- function () {
10
+ grepl(" linux" , tolower(Sys.info()[" sysname" ]))
11
+ }
You can’t perform that action at this time.
0 commit comments