pcdas_connect: Creates a connection to the PCDaS ElasticSearch cluster

Description Usage Arguments Value Examples

View source: R/pcdas_connect.R

Description

This function creates a connection to the ElasticSearch server from the Plataforma de Ciência de Dados aplicada à Saúde (PCDaS). A username and password from PCDaS are needed in order to use this package and can be freely obtained at https://bigdata.icict.fiocruz.br.

Usage

1
2
3
4
5
6
7
8
pcdas_connect(
  host = "dados-pcdas.icict.fiocruz.br",
  port = 443,
  transport_schema = "https",
  user,
  pwd_mode = "dialog",
  pwd_txt
)

Arguments

host

ElasticSearch cluster address from PCDaS.

port

Port number.

transport_schema

Only 'https' connection is supported.

user

Username at PCDaS.

pwd_mode

"dialog" will use an interactive dialog asking for the password. Use "text" to inform the password with 'pwd_txt' (usefull case for automations).

pwd_txt

Password in plain text.

Value

A connection instruction to the PCDaS ElasticSearch cluster.

Examples

1
2
pcdas_connect(user = "your_username")
pcdas_connect(user = "your_username", pwd_mode = "text", pwd_txt = "your_password")

bigdata-icict/pcdasindi documentation built on March 11, 2020, 5:15 p.m.