process_uploaded_csv: Process uploaded CSV

View source: R/nabat_gql_queries.R

process_uploaded_csvR Documentation

Process uploaded CSV

Description

Process a csv and upload to your NABat Project

Usage

process_uploaded_csv(
  user_id,
  project_id,
  asUUid,
  template,
  survey_type,
  token,
  file_path,
  file_name = NULL,
  branch = "prod",
  url = NULL,
  aws_gql = NULL,
  aws_alb = NULL,
  docker = FALSE
)

Arguments

user_id

Numeric NABat user Id - from get_user_id_by_email()

project_id

Numeric or String a project id

asUUid

String asUUid - from get_presigned_data()

template

Dataframe - from get_upload_file_preview()

survey_type

String Type of data to process: 'bulk_sae' | 'bulk_mae' | 'bulk_hib' | 'bulk_mat' | 'bulk_ee'

token

List token created from get_nabat_gql_token() or get_refresh_token()

file_path

String full path to CSV file for preview

file_name

String Name of file to be uploaded into NABat website

branch

(optional) String that defaults to 'prod' but can also be 'dev'|'beta'|'local'

url

(optional) String url to use for GQL

aws_gql

(optional) String url to use in aws

aws_alb

(optional) String url to use in aws

docker

(optional) Boolean if being run in docker container or not


usgs/nabatr documentation built on Jan. 28, 2024, 7:10 a.m.