Skip to content

Commit 24ba558

Browse files
committed
Vignette improvements
1 parent 351aff6 commit 24ba558

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

RcppTskit/vignettes/RcppTskit_intro.qmd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -296,10 +296,10 @@ ts$dump(file = ts_file)
296296
# ts2.dump("insert_ts_file_path_here")
297297
# ... and to bring it back to R, use ...
298298
ts2 <- ts_load(ts_file)
299-
ts$num_individuals() # 2 (if you have run the above Python code)
299+
ts2$num_individuals() # 2 (if you have run the above Python code)
300300
file.remove(ts_file)
301301
302-
# You can work similarly with table collection between R & Python
302+
# Analogous to the above, you can also use reticulate to work on a table collection
303303
tc <- ts$dump_tables()
304304
if (check_tskit_py(tskit)) {
305305
tc_py <- tc$r_to_py()
@@ -343,8 +343,8 @@ ts <- ts_load(ts_file)
343343
# (on the pointer)
344344
ts_num_individuals2(ts$xptr)
345345
346-
# An identical RcppTskit implementation
347-
# (available as the method of the TreeSequence class)
346+
# The above is identical to the RcppTskit implementation
347+
# (available as a method of the TreeSequence class)
348348
ts$num_individuals()
349349
```
350350

0 commit comments

Comments
 (0)