rbedrock is an extension package for R that supports the analysis and management of Minecraft (Bedrock Edition) worlds. This includes Windows 10, Pocket Edition, XBox, and PS4 versions of the game. It does not include Minecraft: Java worlds.
To install the development version you will need to have suitable development tools installed on your machine. This includes CMake on Unix.
# Install from CRAN [NOT CURRENTLY AVAILABLE]
# install.packages("rbedrock")
# Or the development version from GitHub
# If you are installing on Windows for the first time, see section below
if (!require(devtools)) {
install.packages("devtools")
}
devtools::install_github("reedacartwright/rbedrock")
Install the latest R and RStudio. On Windows, you will also need to install the Rtools40 package to build rbedrock from source. This can be accomplished with the code below.
# Install the "installr" package if neccessary
if(!require(installr)) {
install.packages("installr")
}
# download, install, and setup rtools
installr::install.URL("https://cran.r-project.org/bin/windows/Rtools/rtools40-x86_64.exe")
writeLines('PATH="${RTOOLS40_HOME}\\usr\\bin;${PATH}"', con = "~/.Renviron")
Now restart R/Rstudio so the new .Renviron can take effect.
# Install from CRAN [NOT CURRENTLY AVAILABLE]
# install.packages("rbedrock")
# Or the development version from GitHub
if (!require(devtools)) {
install.packages("devtools")
}
devtools::install_github("reedacartwright/rbedrock")
# Install tidyverse (not needed, but useful)
if(!require(tidyverse)) {
install.packages("tidyverse")
}