R/get.orchard.R

#' Returns the primary hub file with project location and id information
#' @return orchard
#' @export
#' 
get_orchard <- function(){
  
  # 
  
  orchard.site <- file.path(path.expand.2("~"),"ProjectPaths","projectid_2_directory.csv")  
  
  if(!file.exists(orchard.site)){
    
    plant.orchard()
      
    return(NULL)
  }
  
  orchard <- read.csv(orchard.site,as.is=TRUE)  
  
  orchard <- orchard[order(orchard$project.id),]
  
  return(orchard)
}
gelfondjal/IT2 documentation built on May 17, 2019, 12:15 a.m.