Skip to content

Commit ad308a0

Browse files
committed
Don't run example for create_scoringmatrix as it takes too long for CRAN
The example contains lots of useful commands and so it seems better to just not run it, rather than to trim it down
1 parent ccf31e9 commit ad308a0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

R/smat.r

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
#' @seealso \code{\link{calc_score_matrix}, \link{calc_prob_mat},
4747
#' \link{calc_dists_dotprods}, \link{neuron_pairs}}
4848
#' @examples
49+
#' \dontrun{
4950
#' # calculate scoring matrix
5051
#' # bring in some mushroom body neurons
5152
#' library(nat)
@@ -71,7 +72,6 @@
7172
#' filled.contour(x=distbreaks, y=dotprodbreaks, z=smat, col=jet.colors(20),
7273
#' main='smat: log odds ratio', xlab='distance /um', ylab='abs dot product')
7374
#'
74-
#' \dontrun{
7575
#' # 3d perspective plot of the scoring matrix
7676
#' persp3d(x=distbreaks, y=dotprodbreaks, z=smat, col=jet.colors(20)[cut(smat,20)],
7777
#' xlab='distance /um', ylab='abs dot product', zlab='log odds ratio')

man/create_scoringmatrix.Rd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ By default \code{create_scoringmatrix} will use all neurons in
6868
calls.
6969
}
7070
\examples{
71+
\dontrun{
7172
# calculate scoring matrix
7273
# bring in some mushroom body neurons
7374
library(nat)
@@ -93,7 +94,6 @@ jet.colors <- colorRampPalette( c("blue", "green", "yellow", "red") )
9394
filled.contour(x=distbreaks, y=dotprodbreaks, z=smat, col=jet.colors(20),
9495
main='smat: log odds ratio', xlab='distance /um', ylab='abs dot product')
9596

96-
\dontrun{
9797
# 3d perspective plot of the scoring matrix
9898
persp3d(x=distbreaks, y=dotprodbreaks, z=smat, col=jet.colors(20)[cut(smat,20)],
9999
xlab='distance /um', ylab='abs dot product', zlab='log odds ratio')

0 commit comments

Comments
 (0)