scriptexec (version 0.3.1)

get_platform_value: Returns the value based on the current platform.

Description

Returns the value based on the current platform.

Usage

get_platform_value(unix_value = c(), windows_value = c(),
  force_windows = FALSE)

Arguments

unix_value

The unix platform value

windows_value

The windows platform value

force_windows

True to force windows (defaulted to OS validation)

Value

unix_value in case of unix system, else the windows_value

Examples

Run this code
# NOT RUN {
platform_value <- get_platform_value('.sh', '.bat')
# }

Run the code above in your browser using DataCamp Workspace