Learn R Programming

notebookutils (version 1.5.3)

notebookutils.fs.append: Append the given String to a file, encoded in UTF-8.

Description

Append the given String to a file, encoded in UTF-8.

Usage

notebookutils.fs.append(file, content, createFileIfNotExists = FALSE)

Value

FALSE to mimic the result if file content append fail.

Arguments

file

FileSystem URI

content

Content needs to be append to file, encoded in System default charset.

createFileIfNotExists

If set to true, will firstly try to create file if not exists.

Examples

Run this code
notebookutils.fs.append("/tmp/my-file", "Hello world!")
notebookutils.fs.append("/tmp/my-file", "Hello world!", TRUE)

Run the code above in your browser using DataLab