Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on installation #5

Closed
davidfombella opened this issue Sep 29, 2017 · 6 comments
Closed

Error on installation #5

davidfombella opened this issue Sep 29, 2017 · 6 comments

Comments

@davidfombella
Copy link

  • installing source package 'soccermatics' ...
    ** R
    Error in .install_package_code_files(".", instdir) :
    files in 'C:/Users/dpomb/AppData/Local/Temp/RtmpisTfHK/devtools900751360cd/JoGall-soccermatics-7de0445/R' missing from 'Collate' field:
    soccerSpokes.R
    ERROR: unable to collate and parse R files for package 'soccermatics'
  • removing 'C:/Users/dpomb/Documents/R/win-library/3.4/soccermatics'
    Installation failed: Command failed (1)

devtools::install_github("jogall/soccermatics")

@JoGall
Copy link
Owner

JoGall commented Oct 1, 2017

Can you try reinstalling the package? I've overhauled the soccerSpokes() function and it seems to work now, at least for me.

@davidfombella
Copy link
Author

Yes, now works. Please I send you a mail , trying to check if given x,y,time utc , you can help me to calculate speed,angle, acceleration to be able to test soccerSpokes and soccerFlow, it is raw data from stadium cameras.

@davidfombella
Copy link
Author

Now error is on this file
Error in .install_package_code_files(".", instdir) :
files in 'Collate' field missing from 'C:/Users/dpomb/AppData/Local/Temp/RtmpWisOsT/devtools31a83d191083/JoGall-soccermatics-ff94e4e/R':
pipe.R

ERROR: unable to collate and parse R files for package 'soccermatics'

  • removing 'C:/Users/dpomb/Documents/R/win-library/3.4/soccermatics'
  • restoring previous 'C:/Users/dpomb/Documents/R/win-library/3.4/soccermatics'
    Installation failed: Command failed (1)

@JoGall
Copy link
Owner

JoGall commented Oct 1, 2017

The issue with pipe.R should be fixed now if you reinstall.

As for extracting speed and heading angle from raw x,y,t-data, see this gist for an example.

Speed is just the Pythogarian distance between successive x,y-points divided by the time interval, and heading angle can be calculated using atan2.

I may add a function to the package for calculating these soon.

@davidfombella
Copy link
Author

On soccer spokes fails, since I have a time column
Error in assert_all_white_list(data) :
Column utc is of unsupported class POSIXlt/POSIXt

@JoGall
Copy link
Owner

JoGall commented Oct 5, 2017

Have you tried excluding the time column from your input data? i.e. soccerSpokes(data[,c("x", "y")])

The function shouldn't be handling time variables anyway so I'll update it soon.

@JoGall JoGall closed this as completed Nov 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants