Skip to content

Commit

Permalink
Remove dontrun as required by CRAN
Browse files Browse the repository at this point in the history
  • Loading branch information
sdray committed Oct 3, 2023
1 parent e276a74 commit 7996922
Show file tree
Hide file tree
Showing 23 changed files with 85 additions and 72 deletions.
36 changes: 18 additions & 18 deletions R/adephylo-package.R
Original file line number Diff line number Diff line change
Expand Up @@ -146,15 +146,15 @@ NULL
#' @keywords datasets
#' @examples
#'
#' \dontrun{
#'
#' if(require(ape) && require(phylobase)){
#'
#' data(carni19)
#' tre <- read.tree(text=carni19$tre)
#' x <- phylo4d(tre, data.frame(carni19$bm))
#' table.phylo4d(x, ratio=.5, center=FALSE)
#' }
#' }
#'
#'
NULL

Expand Down Expand Up @@ -184,7 +184,7 @@ NULL
#' @keywords datasets
#' @examples
#'
#' \dontrun{
#'
#' if(require(ape) && require(phylobase)){
#'
#' data(carni70)
Expand All @@ -209,7 +209,7 @@ NULL
#'
#' par(oldpar)
#' }
#' }
#'
#'
NULL

Expand Down Expand Up @@ -248,7 +248,7 @@ NULL
#' @keywords datasets
#' @examples
#'
#' \dontrun{
#'
#' if(require(ape) && require(phylobase)){
#'
#' ## see data
Expand Down Expand Up @@ -280,7 +280,7 @@ NULL
#'
#' }
#' }
#' }
#'
#'
NULL

Expand All @@ -307,7 +307,7 @@ NULL
#' @keywords datasets
#' @examples
#'
#' \dontrun{
#'
#' if(require(ape) && require(phylobase)){
#'
#' data(maples)
Expand All @@ -334,7 +334,7 @@ NULL
#' pic.dom <- pic(dom, tre)
#' cor.test(pic.bif, pic.dom) # correlation is no longer significant
#' }
#' }
#'
#'
NULL

Expand Down Expand Up @@ -371,7 +371,7 @@ NULL
#' @keywords datasets
#' @examples
#'
#' \dontrun{
#'
#' if(require(ape) && require(phylobase)){
#'
#' data(mjrochet)
Expand All @@ -388,7 +388,7 @@ NULL
#' mjr.tests <- abouheif.moran(mjr, nrep=499)
#' mjr.tests
#'
#' }
#'
#' }
#'
NULL
Expand Down Expand Up @@ -433,7 +433,7 @@ NULL
#' @keywords datasets
#' @examples
#'
#' \dontrun{
#'
#' if(require(ape) && require(phylobase)){
#'
#' ## load data, make a tree and a phylo4d object
Expand All @@ -455,7 +455,7 @@ NULL
#' }
#' par(oldpar)
#' }
#' }
#'
#'
NULL

Expand Down Expand Up @@ -492,7 +492,7 @@ NULL
#' @keywords datasets
#' @examples
#'
#' \dontrun{
#'
#' if(require(ape) && require(phylobase)){
#'
#' ## load data, make tree and phylo4d object
Expand All @@ -503,7 +503,7 @@ NULL
#' table.phylo4d(x,cex.lab=.7)
#' par(oldpar)
#' }
#' }
#'
#'
NULL

Expand Down Expand Up @@ -546,7 +546,7 @@ NULL
#' @keywords datasets
#' @examples
#'
#' \dontrun{
#'
#' if(require(ape) && require(phylobase)){
#'
#' data(tithonia)
Expand All @@ -560,7 +560,7 @@ NULL
#' table.phylo4d(x)
#' par(oldpar)
#' }
#' }
#'
#'
NULL

Expand Down Expand Up @@ -594,7 +594,7 @@ NULL
#' @keywords datasets
#' @examples
#'
#' \dontrun{
#'
#' if(require(ape) && require(phylobase)){
#' ## load data
#' data(ungulates)
Expand All @@ -614,7 +614,7 @@ NULL
#' ## test phylogenetic inertia in residuals
#' orthogram(residuals(lm1), x)
#' }
#' }
#'
#'
NULL

Expand Down
7 changes: 4 additions & 3 deletions R/moran.R
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@
#' @keywords manip
#' @examples
#'
#' \dontrun{
#'
#' ## use maples dataset
#' if(require(ape) && require(phylobase)){
#' data(maples)
#' tre <- read.tree(text=maples$tre)
#' tre <- ape::read.tree(text=maples$tre)
#' dom <- maples$tab$Dom
#' bif <- maples$tab$Bif
#'
Expand All @@ -53,8 +54,8 @@
#' hist(sim, col="grey", main="Moran's I Monte Carlo test for 'bif'") # plot
#' mtext("Histogram of permutations and observation (in red)")
#' abline(v=sim[1], col="red", lwd=3)
#'
#' }
#'
#' @rdname moranIdx
#' @export
moran.idx <- function(x, prox, addInfo=FALSE){
Expand Down
4 changes: 2 additions & 2 deletions R/orthobasis.R
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
#' table.phylo4d(obj, cex.sym=.7, cex.lab=.7)
#'
#'
#' \dontrun{
#'
#' ## REMOVING PHYLOGENETIC AUTOCORRELATION IN A MODEL ##
#' ## use example in ungulates dataset
#' data(ungulates)
Expand Down Expand Up @@ -98,7 +98,7 @@
#' ## see the difference
#' table.phylo4d(phylo4d(tre, cbind.data.frame(resid1, resid2)))
#' }
#' }
#'
#'
#' @rdname orthobasis
#' @import phylobase ade4
Expand Down
4 changes: 2 additions & 2 deletions R/orthogram.R
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
#' Phylogenetic Tree. \emph{Biometrics}, \bold{62}, 471--477.
#' @examples
#'
#' \dontrun{
#'
#' if(require(ape) && require(phylobase)){
#'
#' ## a phylogenetic example
Expand Down Expand Up @@ -114,7 +114,7 @@
#' W <- proxTips(tre, method="oriAbouheif") # proximity matrix
#' abouheif.moran(resid, W)
#' }
#' }
#'
#'
#' @import phylobase
#' @import ade4
Expand Down
4 changes: 2 additions & 2 deletions R/partition.R
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ listTips <- function(x){
#' @keywords manip
#' @examples
#'
#' \dontrun{
#'
#'
#' if(require(ape) & require(phylobase)){
#' ## make a tree
Expand All @@ -112,7 +112,7 @@ listTips <- function(x){
#' temp <- phylo4d(x, partition)
#' table.phylo4d(temp, cent=FALSE, scale=FALSE)
#' }
#' }
#'
#'
#' @import phylobase
#' @export treePart
Expand Down
4 changes: 2 additions & 2 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -92,15 +92,15 @@
#' @keywords manip
#' @examples
#'
#' \dontrun{
#'
#' if(require(ape) & require(phylobase)){
#' ## make a tree
#' x <- as(rtree(20),"phylo4")
#' plot(x,show.node=TRUE)
#' ## get shortest path between tip 1 and all other tips.
#' sp.tips(x, "t1", "t2")
#' sp.tips(x, 1, 2:20, TRUE)
#' }
#'
#' }
#'
#' @import phylobase
Expand Down
19 changes: 11 additions & 8 deletions man/bullseye.Rd

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

4 changes: 2 additions & 2 deletions man/carni19.Rd

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

8 changes: 5 additions & 3 deletions man/carni70.Rd

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

4 changes: 2 additions & 2 deletions man/lizards.Rd

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

4 changes: 2 additions & 2 deletions man/maples.Rd

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

Loading

0 comments on commit 7996922

Please sign in to comment.