You can install the development version of spBART from GitHub with:
# install.packages("devtools")
devtools::install_github("MateusMaiaDS/spBART")
This is a basic example which shows you how to solve a common problem:
library(rspBART)
data("airquality")
airquality <- airquality[complete.cases(airquality),]
airquality$Ozone <- (airquality$Ozone)^(1/3)
x.train <- airquality[,!(colnames(airquality) %in% "Ozone")]
y.train <- airquality$Ozone
spBART <- rspBART(x_train = x.train,nIknots = 10,
y_train = y.train,n_tree = 3,
x_test = x.train)