Learn R Programming

fritools (version 3.3.0)

get_mtime: Get the mtime Attribute to or from an Object

Description

We set modification times on some objects, this is a convenience wrappers to attr.

Usage

get_mtime(x)

Arguments

x

An object.

Value

The value of attr(attr(x, "path", "mtime").

See Also

Other file utilities: file_copy(), file_modified_last(), file_save(), find_files(), get_unique_string(), is_files_current(), is_path(), paths, search_files(), split_code_file(), touch()

Examples

Run this code
# NOT RUN {
x <- 2
path <- tempfile()
touch(path)
x <- set_path(x, path)
get_mtime(x)
# }

Run the code above in your browser using DataLab