Skip to content

Commit

Permalink
Expand path in ts_save
Browse files Browse the repository at this point in the history
  • Loading branch information
bodkan committed Sep 4, 2022
1 parent 79adf14 commit 382e0b7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

- The `-1` value as a missing value indicator used in tskit is now replaced with the more R-like `NA` in various tree-sequence tables (annotated by _slendr_ or original through tskit itself) ([#2f5fc32](https://github.com/bodkan/slendr/commit/2f5fc32)).

- Relative paths are now expanded in `ts_save()` ([#9521dfb](https://github.com/bodkan/slendr/commit/9521dfb)).

# slendr 0.3.0

- SLiM 4.0 is now required for running simulations with the `slim()` engine. If you want to run _slendr_ simulations with SLiM (spatial or non-spatial), you will need to upgrade you SLiM installation. SLiM 3.7.1 version is no longer supported as the upcoming new _slendr_ spatial features will depend on SLiM 4.x and maintaining two functionally identical yet syntactically different back ends is not feasible (PR [#104](https://github.com/bodkan/slendr/pull/104)).
Expand Down
2 changes: 1 addition & 1 deletion R/tree-sequences.R
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ ts_load <- function(file, model = NULL,
#' @export
ts_save <- function(ts, file) {
check_ts_class(ts)
ts$dump(file)
ts$dump(path.expand(file))
}


Expand Down
1 change: 1 addition & 0 deletions docs/news/index.html

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

0 comments on commit 382e0b7

Please sign in to comment.