Description Usage Arguments Value Please note See Also Examples
View source: R/create_inportxml.R
This function calls both create_itemxml
and create_entityxml
functions (internal) to
generate two separate XML files. As InPort is currently configured, the two XML files
must be uploaded in separate steps, and both are necessary for successful upload.
1 | create_inportxml(inFile, outPath = getwd(), outFile)
|
inFile |
The full path to the metadata template (unless in current working directory) (e.g. "Master_Template.xlsx"). |
outPath |
The path to the directory where output file should be saved. Default(current working directory) |
outFile |
An identifying name for output files (e.g. "CHL_metadata_V1.xml".) |
Nothing
Two XML files are created; one for the master XML and one for Entity XML. The filenames
will be concatenated with "master_" and "entity_" and saved in directory specified by outPath
The Master_Template.xlsx file is part of the package. It is installed wherever your packages get installed on your computer.
To find where packages are installed on your machine, type .libPaths()
on the commad line. Navigate to this folder to find inportxml
and
then copy this file into your current working directory.
Alternatively you can run the function copy_master_to_wd
. The copying will be done automatically for you.
1 2 3 4 5 6 7 | ## Not run:
#Be sure that inFile refers to the full path of the metadata template unless it is saved in your current working directory.
create_inportxml(inFile = "Master_Template.xlsx", outPath = paste(getwd(),"/output"), outFile = "X_metadata_V1.xml")
This assumes that Master_Template.xlsx resides in your current working directory. Two files are created:
(master_X_metadata_V1.xml and entity_X_metadata_V1.xml) in the folder called "output" in your current working directory.
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.