Skip to content

Commit df219c7

Browse files
committed
Fixes #3
1 parent b39a6a6 commit df219c7

91 files changed

Lines changed: 562 additions & 419 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/R-CMD-check.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ jobs:
4242

4343
- uses: r-lib/actions/setup-r-dependencies@v2
4444
with:
45-
working-directory: tskitr
45+
working-directory: RcppTskit
4646
extra-packages: any::rcmdcheck
4747
needs: check
4848

4949
- uses: r-lib/actions/check-r-package@v2
5050
with:
51-
working-directory: tskitr
51+
working-directory: RcppTskit
5252
upload-snapshots: true
5353
build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")'

.github/workflows/format-check.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ jobs:
2020
uses: posit-dev/setup-air@v1
2121

2222
- name: Check
23-
run: cd tskitr; air format --check .
23+
run: cd RcppTskit; air format --check .

.github/workflows/format-suggest.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
uses: posit-dev/setup-air@v1
3737

3838
- name: Format
39-
run: cd tskitr; air format .
39+
run: cd RcppTskit; air format .
4040

4141
- name: Suggest
4242
uses: reviewdog/action-suggester@v1

.github/workflows/jarl-check.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ jobs:
2020
uses: etiennebacher/setup-jarl@v0.1.0
2121

2222
- name: Check
23-
run: cd tskitr; jarl check R/*.R
23+
run: cd RcppTskit; jarl check R/*.R

.github/workflows/test-coverage.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ jobs:
3636

3737
- uses: r-lib/actions/setup-r-dependencies@v2
3838
with:
39-
working-directory: tskitr
39+
working-directory: RcppTskit
4040
extra-packages: any::covr, any::xml2
4141
needs: coverage
4242

4343
- name: Test coverage
44-
working-directory: tskitr
44+
working-directory: RcppTskit
4545
run: |
4646
cov <- covr::package_coverage(
4747
quiet = FALSE,
@@ -57,8 +57,8 @@ jobs:
5757
# Fail if error if not on PR, or if on PR and token is given
5858
# fail_ci_if_error: ${{ github.event_name != 'pull_request' || secrets.CODECOV_TOKEN }}
5959
fail_ci_if_error: false
60-
config: tskitr/codecov.yaml
61-
files: tskitr/cobertura.xml
60+
config: RcppTskit/codecov.yaml
61+
files: RcppTskit/cobertura.xml
6262
plugins: noop
6363
disable_search: true
6464
token: ${{ secrets.CODECOV_TOKEN }}

.gitignore

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
.RData
55
.Ruserdata
66
.vscode
7-
tskitr/src/*.o
8-
tskitr/src/tskit/*.o
9-
tskitr/src/*.so
10-
tskitr/src/*.dll*
11-
tskitr/src/Makevars
12-
tskitr/src/Makevars.win
7+
RcppTskit/src/*.o
8+
RcppTskit/src/tskit/*.o
9+
RcppTskit/src/*.so
10+
RcppTskit/src/*.dll*
11+
RcppTskit/src/Makevars
12+
RcppTskit/src/Makevars.win
1313
test.trees
1414
.DS_Store
1515
*.html

README.md

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# tskitr: R access to the `tskit` C API
1+
# RcppTskit: R access to the `tskit` C API
22

33
## Overview
44

@@ -7,15 +7,15 @@ recombination graphs (ARGs) using succinct tree sequence encoding.
77
See https://tskit.dev for project news, documentation, and tutorials.
88
Tskit provides Python, C, and Rust APIs. The Python API can be called from R
99
via the `reticulate` R package to seamlessly load and analyse a tree sequence,
10-
as described at https://tskit.dev/tutorials/tskitr.html.
11-
`tskitr` provides R access to the `tskit` C API for use cases where the
10+
as described at https://tskit.dev/tutorials/RcppTskit.html.
11+
`RcppTskit` provides R access to the `tskit` C API for use cases where the
1212
`reticulate` approach is not optimal. For example, for high-performance and
13-
low-level work with tree sequences. Currently, `tskitr` provides a very limited
13+
low-level work with tree sequences. Currently, `RcppTskit` provides a very limited
1414
number of R functions due to the availability of extensive Python API and
1515
the `reticulate` approach.
1616

1717
See more details on the state of the tree sequence ecosystem and aims for
18-
`tskitr` in [tskitr/inst/STATE_and_AIMS.md](tskitr/inst/STATE_and_AIMS.md),
18+
`RcppTskit` in [RcppTskit/inst/STATE_and_AIMS.md](RcppTskit/inst/STATE_and_AIMS.md),
1919
including examples on how to use it on its own or to develop new R packages.
2020

2121
TODO: Think how to best point to use cases. Probably best to point to vignette!?
@@ -24,34 +24,34 @@ TODO: Think how to best point to use cases. Probably best to point to vignette!?
2424
## Status
2525

2626
<!-- badges: start -->
27-
[![R-CMD-check](https://github.com/HighlanderLab/tskitr/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/HighlanderLab/tskitr/actions/workflows/R-CMD-check.yaml)
27+
[![R-CMD-check](https://github.com/HighlanderLab/RcppTskit/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/HighlanderLab/RcppTskit/actions/workflows/R-CMD-check.yaml)
2828

29-
[![Codecov test coverage](https://codecov.io/gh/HighlanderLab/tskitr/graph/badge.svg)](https://app.codecov.io/gh/HighlanderLab/tskitr)
29+
[![Codecov test coverage](https://codecov.io/gh/HighlanderLab/RcppTskit/graph/badge.svg)](https://app.codecov.io/gh/HighlanderLab/RcppTskit)
3030
<!-- badges: end -->
3131

3232
TODO: Add R package badges (build status, CRAN version, etc.) to README.md #1
33-
https://github.com/HighlanderLab/tskitr/issues/1
33+
https://github.com/HighlanderLab/RcppTskit/issues/1
3434

3535
## Contents
3636

37-
* `extern` - Git submodule for `tskit` and instructions on obtaining the latest version and copying the `tskit` C code into `tskitr` directory. `extern` is saved outside of the `tskitr` directory because `R CMD CHECK` complains otherwise.
37+
* `extern` - Git submodule for `tskit` and instructions on obtaining the latest version and copying the `tskit` C code into `RcppTskit` directory. `extern` is saved outside of the `RcppTskit` directory because `R CMD CHECK` complains otherwise.
3838

39-
* `tskitr` - R package `tskitr`.
39+
* `RcppTskit` - R package `RcppTskit`.
4040

4141
## License
4242

4343
* See `extern/LICENSE` for `tskit`.
4444

45-
* See `tskitr/DESCRIPTION` and `tskitr/LICENSE` for `tskitr`.
45+
* See `RcppTskit/DESCRIPTION` and `RcppTskit/LICENSE` for `RcppTskit`.
4646

4747
## Installation
4848

4949
To install the published release from CRAN use:
5050

5151
```
5252
# TODO: Publish on CRAN #14
53-
# https://github.com/HighlanderLab/tskitr/issues/14
54-
# install.packages("tskitr")
53+
# https://github.com/HighlanderLab/RcppTskit/issues/14
54+
# install.packages("RcppTskit")
5555
```
5656

5757
To install a published release or specific branches from Github use the
@@ -66,33 +66,33 @@ https://mac.r-project.org/tools for macOS tools.
6666
6767
# Release (TODO)
6868
# TODO: Tag a release #15
69-
# https://github.com/HighlanderLab/tskitr/issues/15
70-
# remotes::install_github("HighlanderLab/tskitr/tskitr")
69+
# https://github.com/HighlanderLab/RcppTskit/issues/15
70+
# remotes::install_github("HighlanderLab/RcppTskit/RcppTskit")
7171
7272
# Main branch
73-
remotes::install_github("HighlanderLab/tskitr/tskitr")
73+
remotes::install_github("HighlanderLab/RcppTskit/RcppTskit")
7474
7575
# Development branch
7676
# TODO: Create a devel branch #16
77-
# https://github.com/HighlanderLab/tskitr/issues/16
78-
# remotes::install_github("HighlanderLab/tskitr/tskitr@devel")
77+
# https://github.com/HighlanderLab/RcppTskit/issues/16
78+
# remotes::install_github("HighlanderLab/RcppTskit/RcppTskit@devel")
7979
```
8080

8181
## Development
8282

8383
First clone the repository:
8484

8585
```
86-
git clone https://github.com/HighlanderLab/tskitr.git
86+
git clone https://github.com/HighlanderLab/RcppTskit.git
8787
```
8888

8989
If you plan to update `tskit`, follow instructions in `extern/README.md`.
9090

91-
Then open `tskitr` package directory in your favourite R IDE (Positron, RStudio, text-editor-of-your-choice, etc.), implement your changes and run (in R):
91+
Then open `RcppTskit` package directory in your favourite R IDE (Positron, RStudio, text-editor-of-your-choice, etc.), implement your changes and run (in R):
9292

9393
```
94-
# Note that the tskitr package is in the tskitr sub-directory
95-
setwd("path/to/tskitr/tskitr")
94+
# Note that the RcppTskit R package is in the RcppTskit sub-directory
95+
setwd("path/to/RcppTskit/RcppTskit")
9696
9797
# Run checks of your changes, documentation, etc.
9898
devtools::check()
@@ -104,15 +104,15 @@ devtools::install()
104104
Alternatively you can check and install from command line:
105105

106106
```
107-
# Note that the tskitr package is in the tskitr sub-directory
108-
cd path/to/tskitr
107+
# Note that the RcppTskit package is in the RcppTskit sub-directory
108+
cd path/to/RcppTskit
109109
110110
# Run checks of your changes, documentation, etc.
111-
R CMD build tskitr
112-
R CMD check tskitr_*.tar.gz
111+
R CMD build RcppTskit
112+
R CMD check RcppTskit_*.tar.gz
113113
114114
# Install the package
115-
R CMD INSTALL tskitr_*.tar.gz
115+
R CMD INSTALL RcppTskit_*.tar.gz
116116
```
117117

118118
On Windows, replace `tar.gz` with `zip`.

0 commit comments

Comments
 (0)