Skip to content
natalia-araujo edited this page Aug 7, 2023 · 7 revisions

Welcome to the faas4i wiki!

This package was designed to allow users to send requests for modeling and updates using FaaS via API.

Installation

If you are a Linux user make sure the following libs are installed:

  1. ‘libcurl4-openssl-dev’
  2. ‘libxml2-dev’

Before you start this installation, make sure you have the package remotes installed in your machine

install.packages("remotes")
remotes::install_github("4intelligence/faas4i")

Don't forget to load the library and you are all set to start using the package!

library("faas4i")

Authentication

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.

Accessing projects

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.

Clone this wiki locally