get_info | R Documentation |
A utility function to retrieve the file information of a filename, path, or URL.
get_info(file)
get_ext(file)
file |
A character string containing a filename, file path, or URL. |
For get_info()
, a list is return with the following slots
input
file extension or information used to identify the possible file format
format
file format, see format
argument of import()
type
"import" (supported by default); "suggest" (supported by suggested packages, see install_formats()
); "enhance" and "known " are not directly supported; NA
is unsupported
format_name
name of the format
import_function
What function is used to import this file
export_function
What function is used to export this file
file
file
For get_ext()
, just input
(usually file extension) is returned; retained for backward compatibility.
get_info("starwars.xlsx")
get_info("starwars.ods")
get_info("https://github.com/ropensci/readODS/raw/v2.1/starwars.ods")
get_info("~/duran_duran_rio.mp3")
get_ext("clipboard") ## "clipboard"
get_ext("https://github.com/ropensci/readODS/raw/v2.1/starwars.ods")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.