add_instance: Add a new instance to the database

Description Usage Arguments Value See Also Examples

View source: R/add_instance.R

Description

Adds a newly created instance to the database. This does mean launching a server (see aws_launch_instance()).

Usage

1
add_instance(connection, name, instance_owner, description = "")

Arguments

connection

A connection object, as retrieved from connect_scrapebot().

name

Character string identifying the instance.

instance_owner

The email address of the ScrapeBot user who will be the owner of the new instance as character string. If this one does not exist, it will be created (in this case, a text will be raised).

description

Character string to describe the instance even further; default is an empty string.

Value

The uid (integer) of the newly created instance or an integer NA in case of error.

See Also

get_instances(), aws_launch_instance()

Examples

1
2
3
4
5
6
7
## Not run: 

connection <- connect('my_db on localhost')
add_instance(connection, 'local machine', 'mario@haim.it')
disconnect(connection)

## End(Not run)

MarHai/ScrapeBotR documentation built on March 10, 2021, 10:10 a.m.