add_autodraft: Add an autodrafter to the DataMuster MongoDB database.

View source: R/add_autodraft.R

add_autodraftR Documentation

Add an autodrafter to the DataMuster MongoDB database.

Description

This function updates the ALMS unit in the Infrastructure and Cattle collections and adds a new document to the AutoDraft collection in the DataMuster MongoDB database. You can only access this function if you have read and write permissions.

Usage

add_autodraft(
  RFID,
  mtag,
  property,
  paddock,
  alms,
  direction,
  username = NULL,
  password = NULL
)

Arguments

RFID

the RFIDs of the cattle on the autodrafter

mtag

the management tags of the cattle on the autodrafter

property

the name of the property

paddock

the name of the paddock

username

if you don't have a username set up using the dmaccess function you can pass a username, if no value added then the function looks for a value from dmaccess via keyring

password

if you include a username you will also need to add a password, contact Lauren O'Connor if you don't have access

Value

a message that indicates that the infrastructure has been successfully added

Author(s)

Anita Chang a.chang@cqu.edu.au


PrecisionLivestockManagement/DMMongoDB documentation built on Aug. 22, 2023, 10:57 a.m.