xmart4_table | R Documentation |
Retrieves data from an xMart table or view, and returns it as a tibble. For views, returns the entire data frame from the mart. For tables, can choose to return only data columns (the default), all columns, or only the system columns.
xmart4_table( mart, table, top = NULL, query = NULL, format = c("none", "csv", "streaming"), col_types = NULL, full_table = TRUE, xmart_server = c("UAT", "PROD"), return_cols = c("data", "all", "sysdata"), auth_type = "client", token = NULL )
mart |
Name of the xMart4 mart |
table |
Name of a table within the mart, otherwise |
top |
Number of rows of a table to return |
query |
A single string fitting the Odata protocol
that must start with |
format |
Specification of the output format to be returned by the xMart API.
Defaults to |
col_types |
One of NULL, a |
full_table |
Logical, whether or not to load all the rows in a specified table,
defaults to |
xmart_server |
Either 'UAT' (the default) or 'PROD' |
return_cols |
Return data columns only (default), all columns, or system data columns. Only works on tables, as views have no system columns. |
auth_type |
Type of authorization to use for the token authorization. If "client" (the default), it uses an AzureAD client setup. The old "wims" method has been discontinued. |
token |
Access token for xMart4 server. If NULL (the default), the package automatically creates and manages access for the user if Azure client ID and secret set up properly. See |
A tibble.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.