write_prep: Prepare to record websocket data

View source: R/Websockets.R

write_prepR Documentation

Prepare to record websocket data

Description

Create folders & files for recording based on inputs

Usage

write_prep(write_dir, url, channel, overwrite, private)

Arguments

write_dir

(character/logical) Default: "AlpacaStreams" top-level directory in which to store log files.

url

(character) the url of the stream for labelling the folder in which it's logs will reside

channel

(character) The name of the channel (will be used as the filename)

overwrite

(logical) Default: FALSE Indicator for whether to overwrite previous log files by making new files (TRUE) or to leave old files (FALSE)

private

(environment) The ⁠*Socket⁠ private environment


jagg19/AlpacaforR documentation built on July 3, 2023, 12:14 p.m.