Skip to content

Commit

Permalink
Minor documentation updates
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerssam committed Jun 6, 2024
1 parent 969c535 commit d0360cb
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 12 deletions.
4 changes: 2 additions & 2 deletions R/summary_graph.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
#'
#' summary_graph(iris, "Petal.Length", "Species", "mm")
#'
#' # Multiple
#' # Multiple explanatory variables can be provided as a vector
#' summary_graph(npk, "yield", c("N", "P"), "lb/plot")
#'
# # Three way interaction
# # Three way interaction of explanatory variables
#' summary_graph(npk, "yield", c("N", "P", "K"), "lb/plot")
#'
summary_graph <- function(data, response, exp_var, resp_units = "") {
Expand Down
5 changes: 2 additions & 3 deletions R/utility_functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,9 @@ quiet <- function(x) {

#' Function to compare package version for mocking
#'
#' @param a One package version
#' @param b Another package version
#' @param a,b Character strings representing package version numbers.
#'
#' @return
#' @return Numeric. `0` if the numbers are equal, `-1` if `b` is later and `1` if `a` is later
#' @keywords internal
compare_version <- function(a, b) {
return(utils::compareVersion(as.character(a), as.character(b)))
Expand Down
5 changes: 3 additions & 2 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ The goal of biometryassist is to provide functions to aid in the Design and Anal

## Installation

As of version 1.0.0 the biometryassist package is now [on CRAN](https://cran.r-project.org/package=biometryassist) `r emo::ji("raised_hands")`.
As of version 1.0.0 the biometryassist package is now [on CRAN](https://cran.r-project.org/package=biometryassist) 🙌
That means that installation is as easy as running:

```{r installing_cran, eval=FALSE}
Expand All @@ -50,7 +50,8 @@ install.packages("biometryassist")

### Development version

`r emo::ji("warning")`**Warning**: The development version is unstable and liable to change more often than the CRAN version. It may have bugs fixed, but there may be other currently unknown bugs introduced. `r emo::ji("warning")`
**Warning**: The development version is unstable and liable to change more often than the CRAN version. It may have bugs fixed, but there may be other currently unknown bugs introduced. ⚠


Use the following code to install the latest development version of this package.

Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ coverage](https://codecov.io/gh/biometryhub/biometryassist/branch/main/graph/bad
status](https://github.com/biometryhub/biometryassist/workflows/R-CMD-check/badge.svg)](https://github.com/biometryhub/biometryassist/actions)
[![minimal R
version](https://img.shields.io/badge/R%3E%3D-4.0.0-6666ff.svg)](https://cran.r-project.org/)
[![packageversion](https://img.shields.io/badge/Package%20version-1.1.3-orange.svg?style=flat-square)](https://github.com/biometryhub/biometryassist/commits/main)
[![packageversion](https://img.shields.io/badge/Package%20version-1.2.1-orange.svg?style=flat-square)](https://github.com/biometryhub/biometryassist/commits/main)
[![Licence](https://img.shields.io/github/license/mashape/apistatus.svg)](https://choosealicense.com/licenses/mit/)
[![Hits](https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2Fbiometryhub%2Fbiometryassist&count_bg=%2379C83D&title_bg=%23555555&icon=&icon_color=%23E7E7E7&title=hits&edge_flat=false)](https://hits.seeyoufarm.com)
<!-- badges: end -->
Expand All @@ -33,7 +33,7 @@ longer maintained, but can still be found at
## Installation

As of version 1.0.0 the biometryassist package is now [on
CRAN](https://cran.r-project.org/package=biometryassist) 🙌. That means
CRAN](https://cran.r-project.org/package=biometryassist) 🙌 That means
that installation is as easy as running:

``` r
Expand All @@ -42,9 +42,9 @@ install.packages("biometryassist")

### Development version

**Warning**: The development version is unstable and liable to change
**Warning**: The development version is unstable and liable to change
more often than the CRAN version. It may have bugs fixed, but there may
be other currently unknown bugs introduced. ⚠
be other currently unknown bugs introduced. ⚠

Use the following code to install the latest development version of this
package.
Expand Down
18 changes: 18 additions & 0 deletions man/compare_version.Rd

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

2 changes: 1 addition & 1 deletion man/summary_graph.Rd

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

0 comments on commit d0360cb

Please sign in to comment.