Learn R Programming

fritools (version 4.6.0)

get_mtime: Get the mtime Attribute from an Object

Description

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

Usage

get_mtime(x)

Value

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

Arguments

x

An object.

See Also

Other file utilities: clipboard_path(), delete_trailing_blank_lines(), delete_trailing_whitespace(), develop_test(), file_copy(), file_modified_last(), file_save(), file_string(), find_files(), get_lines_between_tags(), get_unique_string(), grep_file(), is_files_current(), is_path(), paths, runsed(), search_files(), split_code_file(), touch()

Examples

Run this code
x <- 2
path <- tempfile()
touch(path)
x <- set_path(x, path)
get_mtime(x)

Run the code above in your browser using DataLab