The miner R package makes it possible to interact with Minecraft from R.
The craft includes additional functions that illustrate and extend the use of miner, including many of the examples in our ebook R Programming with Minecraft. See the craft vignette.
This package was created as part of the ROpenSci unconference in May, 2017 by:
Install the miner and craft packages from R universe:
install.packages(c("miner", "craft"), repos=c("https://kbroman.r-universe.dev", "https://cloud.r-project.org"))
Alternatively, use the remotes package to install them from GitHub. First install remotes:
install.packages("remotes")
Then use remotes:install_github() to install miner and
craft:
library(remotes)
install_github("kbroman/miner", build_vignettes=TRUE)
install_github("kbroman/craft", build_vignettes=TRUE)
Note: this should automatically install a number of dependent
packages, including Rmaze,
igraph, and
imager. To install imager you may
need to install Xquartz on Mac or
libx11-dev or similar on Linux.
You'll need a Minecraft server that is running the RaspberryJuice plugin. See the Installation and configuration section of R Programming with Minecraft.
Licensed under the MIT license. (More information here.)