fawda123 / rStrava

Functions to access data from Strava's v3 API.
152 stars 31 forks source link

athlind_fun errors out when strava members has privacy settings #64

Closed duncan-clark closed 5 years ago

duncan-clark commented 5 years ago

Would it be useful to have the function return NAs when it can't scrape the data?

fawda123 commented 5 years ago

Yea I can do that, or better yet, return an informative error message. Can you please provide a user ID I can use as an example?

duncan-clark commented 5 years ago

Try 11055606, it should be private so not scrape-able.

fawda123 commented 5 years ago

Alright, how about this (16ed3a250be7f243e9ea2c7f51c03191d68995e1):

athl_fun('11055606')
# 11055606 1 of 1 
# $`11055606`
# [1] "No data for athlete 11055606, sharing permissions likely set to private."
duncan-clark commented 5 years ago

Thanks, looks good