I am using the R package twitteR to post items to Twitter. I put everything inside of a function and it works fine. However, I would like to run the function without being
I don't know much about it.
But if it's in batch, maybe try this:
doit <- function() {
# connect to Twitter
setup_twitter_oauth(api_key, api_secret, access_token, access_token_secret)
< echo 1
}
Also have you tried posting the 1 outside the function to see if it does the same?
And maybe it will work if you put the 1 under the snip
These are just suggestions, cause i don't know very much about the topic, but it might help though.