R Package Error

Is anyone getting any error - Error in library(BasketballAnalyzeR) :
there is no package called ‘BasketballAnalyzeR’ when trying to install this package? I am unable to install it. Can someone please help me? Thank you!

This is an error message for library(BasketballAnalyzeR) when the package has not already been installed. Do you get an error message from install.packages("BasketballAnalyzeR")?

Thank you for the response. Error in PbPmanipulation(PbP.BDB) :
could not find function "PbPmanipulation" - this is the error that I am getting now. I installed the BasketballAnalyzeR package and ran the library line so the package was installed successfully.

library(BasketballAnalyzeR) - I am also getting the following error when I run library basketballanalyzeR library line
Error: package or namespace load failed for ‘BasketballAnalyzeR’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package called ‘GGally’
In addition: Warning message:
package ‘BasketballAnalyzeR’ was built under R version 4.0.5

Just to confirm, does this chunk produce that error?

pbp <- PbPmanipulation(PbP.BDB)

Is BasketballAnalyzer in the User Library? Is the box checked after running library(BasketballAnalyzeR)?

Edit: GGally requires ggplot2 3.4.4, which is the latest version. Try installing that and then install GGally.

I installed BasketballAnalyzer in a Posit Cloud project, along with 26 dependencies, and got this message when loading the package:

Loading required package: ggplot2
Registered S3 method overwritten by 'GGally':
method from
+.gg ggplot2
The legacy packages maptools, rgdal, and rgeos, underpinning the sp package,
which was just loaded, will retire in October 2023.
Please refer to R-spatial evolution reports for details, especially
sp evolution status: examples of migration from retiring packages.
It may be desirable to make the sf package available;
package maintainers should consider adding sf to Suggests:.
The sp package is now running under evolution status 2
(status 2 uses the sf package in place of rgdal)

BasketballAnalyzeR has not been updated since June, 2020. You could contact the authors if you continue to have problems. Good luck!

Thank you for the quick response and useful information

When executing the command install.packages("DataViz") , I received an error message stating, "Error in library(DataViz) : there is no package called ‘DataViz’". Despite ensuring a stable internet connection and updating my package index, the problem persisted. After experimenting with different CRAN mirrors and installing potential dependencies, the issue remained unresolved.

Can you point us to a reference to the package DataViz?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.