Learn R Programming

RBaseX (version 0.1.4)

Add: Add

Description

Adds a new resource to the opened database.

Usage

Add(session, path, input)

Arguments

session

BasexClient instance-ID

path

Path

input

Additional input (optional).

Value

A list with two items

  • info Aditional info

  • success Boolean, indicating if the command was completed successfull

Details

The 'input' can be a length-1 character vector or a stream. The utility-function input_to_raw can be used to convert a file or an URL to a stream.

Examples

Run this code
# NOT RUN {
Add(Session, "test", "<xml>Add</xml>")
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab