if(interactive() && has_rave_subject("demo/DemoSubject")) {
# the actual example code:
# new channel 100 = 2 x channel 14 - (channe 15 + 16)
compose_channel(
subject = "demo/DemoSubject",
number = 100,
from = c(14, 15, 16),
weights = c(2, -1, -1),
normalize = FALSE
)
}
Run the code above in your browser using DataLab