# NOT RUN {
library(mvabund)
#load species composition and environmental data
data(capcay)
adj.sr <- capcay$adj.sr
#use a subset of data in this example to reduce run time
env_sp <- capcay$env_sp[, 1:5]
#to execute calculations on a single core:
ses.maglm(data = env_sp, y = "adj.sr", par = FALSE,
family = "gaussian", runs = 4)
# }
# NOT RUN {
#to execute parallel calculations:
sfInit(parallel = TRUE, cpus = 4)
sfExportAll()
ses.maglm(data = env_sp, y = "adj.sr", par = TRUE,
family = "gaussian", runs = 4)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab