R/Result.R

#' @export
#' @importFrom R6 R6Class
Result <- R6Class(
    "Result",

    inherit = Directory,

    public = list(

        initialize = function(path) {
            super$initialize(path)
        },

        stdout = function() {
            super$file("stdout.txt")
        },

        exitcode = function() {
            super$file("exitcode.int")
        },

        runtime = function() {
            super$file("runtime.csv")
        },

        successful = function() {
            self$exitcode()$read() == 0
        }
    )
)
aviralg/experimentr documentation built on Jan. 9, 2022, 8:11 a.m.