Can't Download Baseballr on Windows

I am trying to download the baseballr packages onto my windows computer. I previously had a mac and it worked perfectly but now I keep getting the same error messages

> devtools::install_github("BillPetti/baseballr")
Downloading GitHub repo BillPetti/baseballr@HEAD
These packages have more recent versions available.
It is recommended to update all of them.
Which would you like to update?

1: All                              
2: CRAN packages only               
3: None                             
4: vctrs     (0.3.2 -> 0.3.3) [CRAN]
5: backports (1.1.7 -> 1.1.9) [CRAN]
6: tidyr     (1.1.1 -> 1.1.2) [CRAN]

Enter one or more numbers, or an empty line to skip updates:1
glue         (NA    -> 1.4.2  ) [CRAN]
vctrs        (0.3.2 -> 0.3.3  ) [CRAN]
backports    (1.1.7 -> 1.1.9  ) [CRAN]
jpeg         (NA    -> 0.1-8.1) [CRAN]
png          (NA    -> 0.1-7  ) [CRAN]
checkmate    (NA    -> 2.0.0  ) [CRAN]
htmlTable    (NA    -> 2.0.1  ) [CRAN]
data.table   (NA    -> 1.13.0 ) [CRAN]
latticeExtra (NA    -> 0.6-29 ) [CRAN]
Formula      (NA    -> 1.2-3  ) [CRAN]
TTR          (NA    -> 0.24.1 ) [CRAN]
zoo          (NA    -> 1.8-8  ) [CRAN]
xts          (NA    -> 0.12-0 ) [CRAN]
tidyr        (1.1.1 -> 1.1.2  ) [CRAN]
bit64        (NA    -> 4.0.4  ) [CRAN]
Hmisc        (NA    -> 4.4-1  ) [CRAN]
snakecase    (NA    -> 0.11.0 ) [CRAN]
rjson        (NA    -> 0.2.20 ) [CRAN]
igraph       (NA    -> 1.2.5  ) [CRAN]
quantmod     (NA    -> 0.4.17 ) [CRAN]
rlist        (NA    -> 0.4.6.1) [CRAN]
vroom        (NA    -> 1.3.1  ) [CRAN]
pbapply      (NA    -> 1.4-3  ) [CRAN]
reldist      (NA    -> 1.6-6  ) [CRAN]
janitor      (NA    -> 2.0.1  ) [CRAN]
highcharter  (NA    -> 0.8.2  ) [CRAN]
Installing 26 packages: glue, vctrs, backports, jpeg, png, checkmate, htmlTable, data.table, latticeExtra, Formula, TTR, zoo, xts, tidyr, bit64, Hmisc, snakecase, rjson, igraph, quantmod, rlist, vroom, pbapply, reldist, janitor, highcharter
Installing packages into ‘C:/Users/jaxde_dx85a/OneDrive/Documents/R/win-library/4.0’
(as ‘lib’ is unspecified)

  There is a binary version available but the source version is later:
          binary source needs_compilation
backports  1.1.7  1.1.9              TRUE

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/glue_1.4.2.zip'
Content type 'application/zip' length 154943 bytes (151 KB)
downloaded 151 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/vctrs_0.3.3.zip'
Content type 'application/zip' length 1195422 bytes (1.1 MB)
downloaded 1.1 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/jpeg_0.1-8.1.zip'
Content type 'application/zip' length 335130 bytes (327 KB)
downloaded 327 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/png_0.1-7.zip'
Content type 'application/zip' length 336667 bytes (328 KB)
downloaded 328 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/checkmate_2.0.0.zip'
Content type 'application/zip' length 698728 bytes (682 KB)
downloaded 682 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/htmlTable_2.0.1.zip'
Content type 'application/zip' length 385909 bytes (376 KB)
downloaded 376 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/data.table_1.13.0.zip'
Content type 'application/zip' length 2572744 bytes (2.5 MB)
downloaded 2.5 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/latticeExtra_0.6-29.zip'
Content type 'application/zip' length 2201789 bytes (2.1 MB)
downloaded 2.1 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/Formula_1.2-3.zip'
Content type 'application/zip' length 181272 bytes (177 KB)
downloaded 177 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/TTR_0.24.1.zip'
Content type 'application/zip' length 530258 bytes (517 KB)
downloaded 517 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/zoo_1.8-8.zip'
Content type 'application/zip' length 1095090 bytes (1.0 MB)
downloaded 1.0 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/xts_0.12-0.zip'
Content type 'application/zip' length 961522 bytes (938 KB)
downloaded 938 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/tidyr_1.1.2.zip'
Content type 'application/zip' length 1025008 bytes (1000 KB)
downloaded 1000 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/bit64_4.0.4.zip'
Content type 'application/zip' length 564750 bytes (551 KB)
downloaded 551 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/Hmisc_4.4-1.zip'
Content type 'application/zip' length 3163510 bytes (3.0 MB)
downloaded 3.0 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/snakecase_0.11.0.zip'
Content type 'application/zip' length 166397 bytes (162 KB)
downloaded 162 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/rjson_0.2.20.zip'
Content type 'application/zip' length 755158 bytes (737 KB)
downloaded 737 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/igraph_1.2.5.zip'
Content type 'application/zip' length 9323044 bytes (8.9 MB)
downloaded 8.9 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/quantmod_0.4.17.zip'
Content type 'application/zip' length 1019357 bytes (995 KB)
downloaded 995 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/rlist_0.4.6.1.zip'
Content type 'application/zip' length 235974 bytes (230 KB)
downloaded 230 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/vroom_1.3.1.zip'
Content type 'application/zip' length 1828413 bytes (1.7 MB)
downloaded 1.7 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/pbapply_1.4-3.zip'
Content type 'application/zip' length 76274 bytes (74 KB)
downloaded 74 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/reldist_1.6-6.zip'
Content type 'application/zip' length 172467 bytes (168 KB)
downloaded 168 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/janitor_2.0.1.zip'
Content type 'application/zip' length 244364 bytes (238 KB)
downloaded 238 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/highcharter_0.8.2.zip'
Content type 'application/zip' length 1549109 bytes (1.5 MB)
downloaded 1.5 MB

package ‘glue’ successfully unpacked and MD5 sums checked
Error: Failed to install 'baseballr' from GitHub:
  (converted from warning) cannot remove prior installation of package ‘glue’

Hi,

It seems that there is an issue with the package 'glue'. Sometimes it helps removing the package and then trying to install it again. You can use remove.packages("glue"), or if that also gives an error, manually delete the offending package (in your case installed in ‘C:/Users/jaxde_dx85a/OneDrive/Documents/R/win-library/4.0’) and then install it again using install.packages("glue").

If you then run the install again, it could work (or there might be other issues that arise :slight_smile: )

Hope this helps,
PJ

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.