Error installing package

Good evening,

Can someone help me with this error please, I cannot use this package.

Thank you for your help

library(gtsummary)
#> Warning: package 'gtsummary' was built under R version 3.6.3
#> Error: package or namespace load failed for 'gtsummary' in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
#>  namespace 'glue' 1.3.1 is already loaded, but >= 1.4.0 is required

Created on 2020-05-13 by the reprex package (v0.3.0)

try

install.packages("glue")

I still have the same error unfortunately

install.packages("glue")
#> 
#>   There is a binary version available but the source version is later:
#>      binary source needs_compilation
#> glue  1.4.0  1.4.1              TRUE
#> 
#>   Binaries will be installed
#> package 'glue' successfully unpacked and MD5 sums checked
#> Warning: cannot remove prior installation of package 'glue'
#> Warning in file.copy(savedcopy, lib, recursive = TRUE): problem copying C:
#> \Users\juanp\Documents\R\R-3.6.2\library\00LOCK\glue\libs\x64\glue.dll to C:
#> \Users\juanp\Documents\R\R-3.6.2\library\glue\libs\x64\glue.dll: Permission
#> denied
#> Warning: restored 'glue'
#> 
#> The downloaded binary packages are in
#>  C:\Users\juanp\AppData\Local\Temp\RtmpaeJbLT\downloaded_packages
library(reprex)
#> Warning: package 'reprex' was built under R version 3.6.3
library(glue)
library(gtsummary)
#> Warning: package 'gtsummary' was built under R version 3.6.3
#> Error: package or namespace load failed for 'gtsummary' in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
#>  namespace 'glue' 1.3.1 is already loaded, but >= 1.4.0 is required

Created on 2020-05-13 by the reprex package (v0.3.0)

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

you would need to restart R (Ctrl+Shift+F10)
and only then install.packages("glue")

Thank you very much, now it works!!!