marcusvolz / strava

Create artistic visualisations with your exercise data
Other
508 stars 57 forks source link

Error: cannot coerce type 'closure' to vector of type 'integer' #12

Closed tnt0932 closed 6 years ago

tnt0932 commented 6 years ago

After going through the initial setup, when I run data <- process_data("/Users/xyz/activites/20121025-011125-Run.gpx") in the R Console gui I get:

  Evaluation error: cannot coerce type 'closure' to vector of type 'integer'.

Any ideas how to resolve this? This is my first foray into R, so apologies if I'm making a basic error.

marcusvolz commented 6 years ago

Hi Troy, I've not come across that error message before - if you're happy to send me the gpx file I can investigate further.

tnt0932 commented 6 years ago

Thanks Marcus. Here's a .zip with the file: 20121024-011124-Run.gpx.zip

marcusvolz commented 6 years ago

Seems to be working for me. One thing you might try is to update to the latest version of R if you haven't already.

facets001 elevations001

marcusvolz commented 6 years ago

Actually I see the problem - just drop the name of the gpx file - you only want to point it to the directory containing all the gpx files, i.e. process_data("/Users/xyz/activites")

tnt0932 commented 6 years ago

That's it (and I misspelled activites)! Thanks for the help with that. It's a great project 👍

marcusvolz commented 6 years ago

Nice, glad it works!

bibekg commented 3 years ago

Just ran into this too, might be a good idea to update the main README.md to say to point process_data at the directory rather than a specific gpx file. Thanks for the awesome library!

mihagazvoda commented 3 years ago

@bibekg Thanks, just created a pull request.