Skip to content

Commit

Permalink
Fix tag download example in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
mhpob committed Jul 5, 2024
1 parent 268ce35 commit 72feefa
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: otndo
Title: Understand your OTN data
Version: 0.2.2
Version: 0.2.3
Authors@R:
person("Michael", "O'Brien", , "[email protected]", role = c("aut", "cre"),
comment = c(ORCID = "0000-0003-1420-6395"))
Expand Down
3 changes: 2 additions & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ download.file(
"https://members.oceantrack.org/data/repository/pbsm/detection-extracts/",
"pbsm_matched_detections_2018.zip/@@download/file"
),
destfile = file.path(td, "pbsm_matched_detections_2018.zip")
destfile = file.path(td, "pbsm_matched_detections_2018.zip"),
mode = "wb"
)
unzip(file.path(td, "pbsm_matched_detections_2018.zip"),
exdir = td
Expand Down
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,11 @@ download.file(
"https://members.oceantrack.org/data/repository/pbsm/detection-extracts/",
"pbsm_matched_detections_2018.zip/@@download/file"
),
destfile = file.path(td, "pbsm_matched_detections_2018.zip")
destfile = file.path(td, "pbsm_matched_detections_2018.zip"),
mode = "wb"
)
unzip(file.path(td, "pbsm_matched_detections_2018.zip"),
exdir = td
exdir = td
)


Expand Down Expand Up @@ -116,7 +117,8 @@ receiver data:
download.file(
paste0(
"https://members.oceantrack.org/data/repository/pbsm/data-and-metadata/",
"archived-records/2018/pbsm-instrument-deployment-short-form-2018.xls/@@download/file"),
"archived-records/2018/pbsm-instrument-deployment-short-form-2018.xls/@@download/file"
),
destfile = file.path(td, "pbsm-instrument-deployment-short-form-2018.xls"),
mode = "wb"
)
Expand All @@ -130,7 +132,7 @@ download.file(
destfile = file.path(td, "pbsm_qualified_detections_2018.zip")
)
unzip(file.path(td, "pbsm_qualified_detections_2018.zip"),
exdir = td
exdir = td
)

## Unqualified detections
Expand All @@ -142,7 +144,7 @@ download.file(
destfile = file.path(td, "pbsm_unqualified_detections_2018.zip")
)
unzip(file.path(td, "pbsm_unqualified_detections_2018.zip"),
exdir = td
exdir = td
)


Expand Down

0 comments on commit 72feefa

Please sign in to comment.