R package blockberry