Dato-Futbol/passing-networks

issue installing package

jc17659 opened this issue · 1 comments

hi there, i am getting this error when trying to install the soccermatics package

* installing *source* package ‘soccermatics’ ...
** using staged installation
** R
** data
*** moving datasets to lazyload DB
** byte-compile and prepare package for lazy loading
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : 
  there is no package called ‘xts’
Calls: <Anonymous> ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
Execution halted
ERROR: lazy loading failed for package ‘soccermatics’
* removing ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library/soccermatics’
Error: Failed to install 'soccermatics' from GitHub:
  (converted from warning) installation of package ‘/var/folders/y1/hqdp0znj0hqd3hv020557l8h0000gp/T//RtmphOzfQC/file143f15c0126e0/soccermatics_0.9.4.tar.gz’ had non-zero exit status
In addition: Warning message:
In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE,  :
  there is no package called ‘soccermatics

any ideas?

thanks,

james

Hey there.
I had some problems some times as well.
Did you try with this lines?:

install.packages("remotes")
remotes::install_github("JoGall/soccermatics")