Have you installed the twitteR package?
I just did the following…
> install.packages("twitterR")
... (skipping installation output)
> require("twitteR")
Loading required package: twitteR
> setup_twitter_oauth
function (consumer_key, consumer_secret, access_token = NULL,
access_secret = NULL)
... (skipping usage output)