The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
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[@]dogado.de.
Install the library from CRAN:
install.packages("foundry")
Alternatively, install the latest development version from Github:
install.packages("remotes")
::install_github("https://github.com/palantir/palantir-r-sdk", ref = "0.13.0") remotes
Configuration for hostname and an authentication token can be provided using options:
foundry.hostname
is the hostname of your instance
e.g. example.palantirfoundry.com
foundry.token
is a token acquired from the
Tokens
section of Foundry SettingsAlternatively, you can set the environment variables
FOUNDRY_HOSTNAME
and FOUNDRY_TOKEN
.
Configuration will be loaded in the following order: options if present, otherwise environment variables.
Authentication tokens serve as a private password and allows a connection to Foundry data. Keep your token secret and do not share it with anyone else. Do not add a token to a source controlled or shared file.
foundry.config_dir
is the directory where configuration
files are stored, defaults to ~/.foundry
foundry.requests.timeout
is the timeout of HTTPS
requests made to Foundry, defaults to 150sTo read datasets, aliases must first be registered. Create a YAML
file called ~/.foundry/aliases.yml
and define an alias for
every dataset you wish to read or write to.
my_dataset:
rid: ri.foundry.main.dataset.31388c03-2854-443e-b6cd-fe51c5908371
my_dataset_on_branch:
rid: ri.foundry.main.dataset.5db9d133-6c87-4917-b11e-18b095ac4d30
branch: develop
library(foundry)
<- datasets.read_table("my_dataset") df
<- datasets.list_files("my_dataset")
all_dataset_files <- datasets.download_files("my_dataset", all_dataset_files) downloaded_files
datasets.write_table(df, "my_dataset")
datasets.upload_files(file.path("~", "Downloads", "example"), "my_dataset")
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.
Health stats visible at Monitor.