Skip to content

Commit 48d4045

Browse files
committed
whitebox 2.0.0
1 parent 46a7e10 commit 48d4045

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

NEWS.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
# whitebox 2.0.0
2+
* Update to WhiteboxTools v2.0.0
3+
- See https://github.com/jblindsay/whitebox-tools/releases/tag/v2.0.0 for details
4+
5+
Enhancements:
6+
- `whitebox::install_whitebox()` will call `wbt_init()` on the `exe_path` after unpacking to target directory
7+
- `wbt_init()` `exe_path`, `wbt_wd()` `wd`, and `install_whitebox()` `pkg_dir` paths can be specified with shorthand `~` for home directory, which is expanded with `path.expand()`
8+
- Unsetting working directories requires only a single call to `wbt_wd("")`
9+
- Functions no longer use `match.call()` so unconventional/automated methods for calling tools that do not have a parseable tool name in the call result now work (#45)
10+
111
# whitebox 1.5.1
212
* Add package options for custom EXE path and verbosity
313
* Changes behavior of `wbt_init()`; now only checks EXE path

R/wbt.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ wbt_options <- function(exe_path = NULL, wd = NULL, verbose = NULL) {
8080

8181
# check user input, set package options
8282
if (!is.null(exe_path)) {
83-
if (dir.exists(exe_path)) exe_path <- path.expand(exe_path)
83+
if (file.exists(exe_path)) exe_path <- path.expand(exe_path)
8484
options(whitebox.exe_path = exe_path)
8585
}
8686

0 commit comments

Comments
 (0)