Skip to content

Commit

Permalink
Merge pull request #79 from inbo/write_dwc_dir
Browse files Browse the repository at this point in the history
Don't use `"."` as default dir in `write_dwc()`
  • Loading branch information
peterdesmet authored Jun 4, 2024
2 parents b940ab5 + 7425d0b commit f48d89e
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ doi: ~
license: MIT
repository-code: https://github.com/inbo/camtrapdp
type: software
version: 0.2.0
version: 0.2.1
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: camtrapdp
Title: Read and Manipulate Camera Trap Data Packages
Version: 0.2.0
Version: 0.2.1
Authors@R: c(
person("Peter", "Desmet", , "[email protected]", role = c("aut", "cre"),
comment = c(ORCID = "0000-0002-8442-8025")),
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# camtrapdp 0.2.1

* `write_dwc()` no longer writes to `"."` by default, since is not allowed by CRAN policies. The user needs to explicitly define a directory (#79).

# camtrapdp 0.2.0

* New function `read_camtrapdp()` reads data files from a Camtrap DP into memory (#9). It will make the data easier to use, by assigning taxonomic information (found in the metadata) to the observations and `eventID`s (found in the observations) to the media (#37).
Expand Down
2 changes: 1 addition & 1 deletion R/write_dwc.R
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
#'
#' # Clean up (don't do this if you want to keep your files)
#' unlink("my_directory", recursive = TRUE)
write_dwc <- function(x, directory = ".") {
write_dwc <- function(x, directory) {
check_camtrapdp(x)

# Set properties from metadata or default to NA when missing
Expand Down
4 changes: 2 additions & 2 deletions codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"codeRepository": "https://github.com/inbo/camtrapdp",
"issueTracker": "https://github.com/inbo/camtrapdp/issues",
"license": "https://spdx.org/licenses/MIT",
"version": "0.2.0",
"version": "0.2.1",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "R",
Expand Down Expand Up @@ -181,7 +181,7 @@
},
"SystemRequirements": null
},
"fileSize": "188.574KB",
"fileSize": "188.364KB",
"releaseNotes": "https://github.com/inbo/camtrapdp/blob/master/NEWS.md",
"readme": "https://github.com/inbo/camtrapdp/blob/main/README.md",
"contIntegration": ["https://github.com/inbo/camtrapdp/actions/workflows/R-CMD-check.yaml", "https://app.codecov.io/gh/inbo/camtrapdp/"],
Expand Down
6 changes: 6 additions & 0 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## Resubmission

This is a resubmission. In this version I have:

* Updated write_dwc() so it no longer writes to the user's home filespace by default. The directory needs to be explicitly provided by the user. Tests write to tempdir().

## R CMD check results

0 errors | 0 warnings | 1 note
Expand Down
2 changes: 1 addition & 1 deletion man/write_dwc.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f48d89e

Please sign in to comment.