-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add chart/folder deletion + refactor delete, add name(Chart) and proj…
…ectId(Chart)
- Loading branch information
Showing
20 changed files
with
836 additions
and
222 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Copyright (c) 2024 Apex Resource Management Solution Ltd. (ApexRMS). All rights reserved. | ||
# MIT License | ||
#' @include AAAClassDefinitions.R | ||
NULL | ||
|
||
#' Retrieves chartId of SyncroSim Chart | ||
#' | ||
#' Retrieves the Chart Id of a SyncroSim \code{\link{Chart}}. | ||
#' | ||
#' @param chart \code{\link{Chart}} object | ||
#' | ||
#' @return | ||
#' An integer: chart id. | ||
#' | ||
#' @examples | ||
#' \donttest{ | ||
#' # Set the file path and name of the new SsimLibrary | ||
#' myLibraryName <- file.path(tempdir(),"testlib") | ||
#' | ||
#' # Set the SyncroSim Session, SsimLibrary, and Project | ||
#' mySession <- session() | ||
#' myLibrary <- ssimLibrary(name = myLibraryName, | ||
#' session = mySession, | ||
#' overwrite = TRUE) | ||
#' myProject <- project(myLibrary, project = "Definitions") | ||
#' | ||
#' # Get the chart object corresponding to the chart called "My Chart" | ||
#' myChart <- chart(myProject, chart = "My Chart") | ||
#' | ||
#' # Get Chart ID for SyncroSim Chart | ||
#' chartId(myChart) | ||
#' } | ||
#' | ||
#' @export | ||
setGeneric("chartId", function(ssimObject) standardGeneric("chartId")) | ||
#' @rdname chartId | ||
setMethod("chartId", signature(ssimObject = "character"), function(ssimObject) { | ||
return(SyncroSimNotFound(ssimObject)) | ||
}) | ||
#' @rdname chartId | ||
setMethod("chartId", signature(ssimObject = "Chart"), function(ssimObject) { | ||
return(ssimObject@chartId) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.