Convert file path to Universal Resource Identifier (URI)
filename— Name of file to convert
Name or full path of file to convert, specified as a string or character vector.
uri— Universal Resource Identifier version of file
Universal Resource Identifier (URI) of the file, returned as a string. URIs are strings that identify resources. In particular, they specify the name of a file and the path to that file. By using a standard format, URIs allow access to a resource over a network. Web addresses (URLs) are types of URIs.
uri = mlreportgen.utils.fileToURI... ("C:/Users/jsmith/Desktop/200-C Form.pdf")
uri = "file:/C:/Users/jsmith/Desktop/200-C%20Form.pdf"