drupalr.agent: DrupalR User-agent

Description Usage Arguments Value Author(s) Examples

Description

This function allows you to set the user-agent string used by DrupalR.

Usage

1
drupalr.agent(agent, c)

Arguments

agent

The user-agent string you wish to send.

c

A valid CURL handler from drupalr.authenticate.

Value

A modified CURL object with the specified user-agent.

Author(s)

Ed Baker

Examples

1
2
3
4
5
6
7
8
9
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
drupalr.agent <- function(agent, c) {
  curlSetOpt(useragent=agent, curl = c)
  return(c)
}

edwbaker/DrupalR documentation built on May 15, 2019, 11:04 p.m.