Skip to content

Commit 697fd99

Browse files
committed
Prepare CRAN release v0.7.2
1 parent fccbcc2 commit 697fd99

File tree

12 files changed

+28
-21
lines changed

12 files changed

+28
-21
lines changed

NEWS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
* Internal reorganisation, moving the Shiny code to `inst/shiny/app.R`.
44

5+
* `launchApp()` is now the main launching function, with `runKLINK()` as an alias.
6+
57
* Fixes a minor regression error in the previous version.
68

79

R/KLINK-package.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33

44
## usethis namespace: start
55
#' @rawNamespace import(shiny, except = c(singleton, is.singleton))
6-
#' @import shinydashboard
76
#' @import gt
87
#' @import openxlsx
98
#' @import pedtools
9+
#' @import shinydashboard
1010
## usethis namespace: end
1111
NULL
1212

R/data.R

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#' Built-in linkage map
22
#'
3-
#' A genetic map including 9 pairs of linked STR markers
3+
#' A genetic map including 9 pairs of linked STR markers.
44
#'
55
#' @format A data frame with 18 rows and 5 columns.
66
#'
@@ -9,14 +9,13 @@
99

1010
#' Dataset for a paternity case
1111
#'
12-
#' A list of two pedigrees forming the hypotheses in a paternity case: H1 (AF is
13-
#' the father of CH) and H2 (unrelated). AF and CH are genotyped with 11 marker.
12+
#' A list of two pedigrees forming the hypotheses in a paternity case: H1 (`AF` is
13+
#' the father of `CH`) and H2 (unrelated). `AF` and `CH` are genotyped with 11
14+
#' markers, with allele frequencies from `forrel::NorwegianFrequencies`.
1415
#'
1516
#' @format A list of two pedigrees, named H1 and H2.
1617
#'
1718
#' @examples
18-
#' library(forrel)
19-
#'
20-
#' plotPedList(paternity, marker = "SE33")
21-
#' kinshipLR(paternity)
19+
#' pedtools::plotPedList(paternity, marker = "SE33")
20+
#' forrel::kinshipLR(paternity)
2221
"paternity"

R/karyo.R

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ karyogram = function(markerdata, cols = KARYOPALETTE, bgcol = "gray92") {
2222
pch = 21, pt.cex = 2.2, pt.bg = cols[1:9], bty = "n")
2323
}
2424

25+
26+
27+
# Hardcoded parameters ----------------------------------------------------
28+
29+
2530
CHROM.MB = c(247.2, 242.9, 199.5, 191.3, 180.9, 170.9, 158.8, 146.3, 140.3,
2631
135.4, 134.4, 132.3, 114.1, 106.4, 100.3, 88.8, 78.8, 76.1,
2732
63.8, 62.4, 46.9, 49.7)

R/launchApp.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#' Launch KLINK
22
#'
3-
#' This launches the shiny app KLINK.
3+
#' This launches the KLINK app. `runKLINK()` is a synonym for `launchApp()`.
44
#'
55
#' @return No return value, called for side effects.
66
#'

R/writeResult.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#' @return NULL
1515
#'
1616
#' @examples
17+
#' \donttest{
1718
#' # Built-in dataset `paternity`
1819
#' peds = paternity
1920
#' map = LINKAGEMAP
@@ -31,7 +32,7 @@
3132
#' outfile = tmp)
3233
#'
3334
#' # openxlsx::openXL(tmp)
34-
#'
35+
#' }
3536
#' @export
3637
writeResult = function(resultTable, pedigrees, linkageMap, markerData,
3738
outfile, notes = NULL, fam = NULL) {

README.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ install.packages("KLINK")
3535

3636
Then you may start KLINK as follows:
3737
```{r, eval = F}
38-
KLINK::runKLINK()
38+
KLINK::launchApp()
3939
```
4040

4141
```{r, echo = F}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ install.packages("KLINK")
2828
Then you may start KLINK as follows:
2929

3030
``` r
31-
KLINK::runKLINK()
31+
KLINK::launchApp()
3232
```
3333

3434
<img src="man/figures/screenshot-klink.png" width="100%" />

man/LINKAGEMAP.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/launchApp.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/paternity.Rd

Lines changed: 5 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/writeResult.Rd

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)