The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.
This package provides R with access to Abseil header files.
This package is a direct import of Abseil libraries.
It can be used via the LinkingTo:
field in the
DESCRIPTION
field of an R package — and the R package
infrastructure tools will then know how to set include flags correctly
on all architectures supported by R.
# Install from CRAN
install.packages("abseil")
# Development version from r-universe with CRAN version as a fallback
install.packages(
"abseil",
repos = c("https://doccstat.r-universe.dev", "https://cloud.r-project.org")
)
## install.packages("pak")
::pak("doccstat/abseil-r")
pak
## install.packages("devtools")
::install_github("doccstat/abseil-r") devtools
::cppFunction(r"{
Rcpp #include "absl/strings/str_join.h"
std::string joinString() {
std::vector<std::string> v = {"foo","bar","baz"};
return absl::StrJoin(v, "-");
}
}", depends = "abseil")
joinString()
#> [1] "foo-bar-baz"
#include <Rcpp.h>
#include "absl/strings/str_join.h"
//' @export
// [[Rcpp::export]]
std::string joinString() {
std::vector<std::string> v = {"foo","bar","baz"};
return absl::StrJoin(v, "-");
}
Bare minimum R package using the abseil
package can be
found at doccstat/abseil-r-example.
Abseil Team, Xingchi Li
For bugs related to Abseil logistics, please report the issue to the official Abseil GitHub Repo.
This package is provided under the same license as Abseil itself, the Apache-2.0 license.
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.