R/DataSourceInfo.r

DataSourceInfo <- setClass(

  # Set the name for the class
  "DataSourceInfo",

  # Define the attributes
  slots = c(
    type = "character"
  ),

  validity = function(object) {

    if (object@type == ""){
      return("If source type is file type, you must provide the file type (e.g. kml)")
    }

    return(TRUE)
  }
)
INPEtrajectories/STDataAccess documentation built on May 6, 2019, 12:23 p.m.