Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 'test_exiftool()'s 'system2()' version call #11

Merged
merged 1 commit into from
Sep 30, 2022
Merged

fix: 'test_exiftool()'s 'system2()' version call #11

merged 1 commit into from
Sep 30, 2022

Conversation

trevorld
Copy link
Contributor

  • Now: system2(command, args = args, stdout = TRUE, stderr = FALSE) returns version number as intended.
  • Previous: system2(command, args = args, stderr = FALSE) returns 0 (since command didn't fail) and prints out version number even if quiet = TRUE. Note as.numeric(0) still successfully casts as a numeric so wasn't throwing an error...
  • Not entirely sure why there is a paste( collapse = "\n") but I assume you had a reason (for Windows?)

* Now: `system2(command, args = args, stdout = TRUE, stderr = FALSE)` returns
  version number as intended.
* Previous: `system2(command, args = args, stderr = FALSE)` returns `0`
  (since command didn't fail)
  and prints out version number even if `quiet = TRUE`.
  Now `as.numeric(0)` still successfully casts as a numeric.
@JoshOBrien JoshOBrien merged commit 840cc1c into JoshOBrien:master Sep 30, 2022
@JoshOBrien
Copy link
Owner

@trevorld Thanks for that well-explained PR.

I no longer fully remember why I put the paste( collapse = "\n") in there, but think I did have a reason. Since it's doing no harm, and may have been used to handle some exceptional circumstance, I'll leave it in there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants