Skip to content

Commit 4c2f274

Browse files
committed
make lr example conditional on cmtk
1 parent 65ace55 commit 4c2f274

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

R/xform.R

+4
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,15 @@ symmetric_manc <- function(x, level=c(5,4), mirror=FALSE, ...) {
9494
#' @export
9595
#' @importFrom nat xyzmatrix
9696
#' @examples
97+
#' \donttest{
9798
#' library(nat)
99+
#' if(!is.null(cmtk.bindir())) {
98100
#' lr=manc_lr_position(xyzmatrix(mancsomapos)/125)
99101
#' # red for left, green for right (nautical convention)
100102
#' points3d(xyzmatrix(mancsomapos), col=ifelse(lr<0, "red","green"))
101103
#' plot3d(boundingbox(mancsomapos))
104+
#' }
105+
#' }
102106
manc_lr_position <- function(x, ...) {
103107
mirror_reg_f=mirror_manc_reglist(level=5)
104108
xyz=xyzmatrix(x)

man/manc_lr_position.Rd

+4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)