dbpf_maintenance_add: Add maintenance item

View source: R/dbpf_maintenance_add.R

dbpf_maintenance_addR Documentation

Add maintenance item

Description

Record maintenance or service issue at a location

Usage

dbpf_maintenance_add(
  con,
  location_name,
  maintenance_text,
  time_UTC,
  mode = "test"
)

Arguments

con

Database connection object, as returned by dbpf_con

location_name

location name used to obtain location ID [character]

maintenance_text

Text describing the repair or maintenance item needed [character]

time_UTC

(optional) When the issue was discovered. If not provided the current time is used. [POSIXct]

mode

Should data be inserted into DB? Defaults to 'test' so that only testing information is returned. To insert: 'insert'

Details

Adds an observation to using the 'maintenance_required' sensor for a particular location. A description of what maintenance is needed should be provided, and should include: who is reporting the issue, what is needed, why it is needed, and a description of where the problem is, if the location is not specific enough.

Author(s)

Nick Brown <nick.brown@carleton.ca>


geocryology/PermafrostDB documentation built on April 17, 2025, 11:54 a.m.