QFileOpen: Opens a Connection

View source: R/DataMart.R

QFileOpenR Documentation

Opens a Connection

Description

Opens a connection for either reading OR writing to a file of a given name. In the reading case, it opens a stream to the file in the Displayr Cloud Drive. In the writing case, it opens a temporary file for writing to and uploads this to the Displayr Cloud Drive on close. Note that writing to a file which already exists will overwrite that file's contents. For more documentation on this function's parameters, see R documentation for opening connections.

Usage

QFileOpen(
  filename,
  open = "r",
  blocking = TRUE,
  encoding = getOption("encoding"),
  raw = FALSE,
  method = getOption("url.method", "default"),
  mime.type = NA,
  company.token = NA
)

Arguments

filename

character string. Name of file to be opened

open

character string. See documentation for connections.

blocking

logical. See documentation for connections.

encoding

character string. See documentation for connections.

raw

logical. See documentation for connections.

method

character string. See documentation for connections.

mime.type

character string. The mime-type of this file. If not provided, it will be interpreted from the file extension.

company.token

Use this if you need to read from a different company's Displayr Cloud Drive. You need to contact Support to get this token.

Value

A curl connection (read) or a file connection (write)


Displayr/flipAPI documentation built on April 17, 2024, 9:42 a.m.