odataCleanName: odataCleanName - converts names to ODATA compliant version....

Description Usage Arguments Details Value Handling refType parameter Author(s) Examples

Description

odataCleanName - converts names to ODATA compliant version. Used to clean names in ODATA calls.

Usage

1
odataCleanName(name, refType = "odataObject")

Arguments

name

string to clean

refType

Reference to the type of object being passed.

Details

odataCleanName Clean a name for ODATA.

Value

Returns name in ODATA compliant form

Handling refType parameter

As of now the refType parameter defaults to the Value of "odataObject" This will ensure that the leading underscode is placed in front of numbers at the beginning of the odata string to comply with Odata Standards. However, This function can be used for other objects as well to replace spaces and hyphens with underscores.

Author(s)

Craig Parman info@ngsanalytics.com

Adam Wheeler adam.wheeler@thermofisher.com

Scott Russell scott.russell@thermofisher.com

Examples

1
2
3
4
5
6
7
## Not run: 
new_name <- odataCleanName("384 Well Plate")
# returns "_384_WELL_PLATE"
new_name <- odataCleanName("384 Well Plate", "tenant")
# returns "384_WELL_PLATE"

## End(Not run)

ajwtech/pfsrsdk documentation built on June 14, 2019, 10:34 a.m.