Rinstapkg (version 0.1.0)

check_user_id: Validate a User Id

Description

This function checks whether a supplied user_id fits the pattern of one, mostly to alert users when supplying a username instead of an id.

Usage

check_user_id(user_id)

Arguments

user_id

numeric; the unique id to identify an Instagram user which can be found in the "pk" field on a user object

Examples

Run this code
# NOT RUN {
# check with a real user id
bieber_user_id <- 6860189 # returned using ig_get_user_id("justinbieber")
check_user_id(bieber_user_id)

# this will return a warning that we need a User Id, not a Username
#check_user_id("justinbieber")
# }

Run the code above in your browser using DataLab