Learn R Programming

SticsRFiles (version 1.4.0)

get_usms_list: Getting usms names list for an usms.xml file

Description

Extracting a usm names list from an usms.xml file

Usage

get_usms_list(
  file,
  usm = NULL,
  usm_path = lifecycle::deprecated(),
  name = lifecycle::deprecated()
)

Value

A vector of usm names

Arguments

file

Path (including name) of the USM xml file

usm

Vector of USM names (or partial names). Optional, if not provided, the function returns the names of all the USMs included in the given file.

usm_path

[Deprecated] usm_path is no longer supported, use file instead.

name

[Deprecated] name is no longer supported, use usm instead.

Examples

Run this code
path <- get_examples_path(file_type = "xml")

usms_list <- get_usms_list(file = file.path(path, "usms.xml"))

usms_list <- get_usms_list(file = file.path(path, "usms.xml"),
usm = c("usm1", "usm2"))

Run the code above in your browser using DataLab