CAS-class: CAS Object Class

CAS-classR Documentation

CAS Object Class

Description

An instance of this class represents a connection and session between the client (R) and the server (SAS Cloud Analytic Services).

Arguments

hostname

A character string that specifies the host name of the CAS controller.

port

A numeric value that specifies the network port number that the CAS controller listens on.

protocol

A string that specifies one of the following:

cas

use binary communication. This is the default.

http

use HTTP communication with the REST interface on the CAS controller.

https

use HTTPS communication with the REST interface on the CAS controller. This protocol must be specified explicity.

auto

automatically detect between the binary and HTTP.

username

A character string that identifies the user ID to authenticate as.

password

A character string that specifies your password.

session

A character string that identifies the 32 character UUID of an existing session, if you want to connect to an existing session. This is rare.

locale

A character string that specifies the locale to use for the CAS session. By default, the locale is set to the locale of the server.

authinfo

A character string that specifies an alternative path to a .authinfo file that is used for authentication. By default, ~/.authinfo is used on Linux and %HOMEDRIVE% \%HOMEPATH%\_authinfo is used on Windows.

path

Base path of the connection URL

authcode

Authorization code from SASLogon used to retrieve an OAuth token.

Value

A CAS object.

Examples

## Not run: 
# Use binary communication and credentals from the default authinfo location.
s <- CAS('cloud.example.com', 5570) 

# Use HTTPS and credentials from the default authinfo location.
s <- CAS('cloud.example.com', 8777, protocol='https')

# Use binary or HTTP communication and credentials from an alternative authinfo.
s <- CAS('cloud.example.com', 5570, protocol='auto', authinfo=~/alt.txt)

# Use binary or HTTP communcation and specify credentials.
s <- CAS('cloud.example.com', 8777, protocol='auto', username="sasdemo"
  password="!s3cret")

## End(Not run)

sassoftware/R-swat documentation built on Feb. 26, 2024, 8 a.m.