-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Welcome to the faas4i wiki!
This package was designed to allow users to send requests for modeling and updates using FaaS via API.
If you are a Linux user make sure the following libs are installed:
- ‘libcurl4-openssl-dev’
- ‘libxml2-dev’
Before you start this installation, make sure you have the package remotes installed in your machine
install.packages("remotes")
We currently require that you have the version 5.0.2 of the package curl installed in your machine to use faas4i. If you are using a different version, you will need to remove the other version and then install 5.0.2:
remove.packages("curl")
remotes::install_version("curl", version = "5.0.2", repos = "http://cran.r-project.org")
Then you can install faas4i:
remotes::install_github("4intelligence/faas4i", force = TRUE, upgrade = FALSE)
Don't forget to load the library and you are all set to start using the package!
library("faas4i")
Each user will need to setup the authentication using the function login. The function login will display a URI where 4CastHub's user email and password will be required, as well as the two-factor-authentication code.
faas4i::login()
## Once the url is printed, copy and paste it to your browser and follow with authentication
By default, the login function will wait 90 seconds for authentication. If you wish to adjust the wait time, it is possible to change the parameter using a numeric value for sleep_time.
You can list all projects associated with your user_email with the function list_projects
, and with the ID of the project of interest, you can use the function download_zip
to download the project.
Obs.: If you wish to clone this wiki through SSH key, use git clone git@github.com:4intelligence/faas4i.wiki.git in your terminal.