I am trying to read excel in my laptop and can't able to read it.
Below are the libraries I used in the code
#--- Loading required libraries
library(readxl)
Warning message:
package ‘readxl’ was built under R version 4.0.5
library(lubridate)
Attaching package: ‘lubridate’
The following objects are masked from ‘package:base’:
date, intersect, setdiff, union
Warning message:
package ‘lubridate’ was built under R version 4.0.5
library(dplyr)
Error: package or namespace load failed for ‘dplyr’:
.onLoad failed in loadNamespace() for 'rlang', details:
call: NULL
error: The rlang package is not properly installed.
The DLL version does not correspond to the package version.
Please update rlang to the latest version.
Updating packages on Windows requires precautions: https://github.com/jennybc/what-they-forgot/issues/62
In addition: Warning message:
package ‘dplyr’ was built under R version 4.0.5
library(xlsx)
Warning message:
package ‘xlsx’ was built under R version 4.0.5
library(readxlsb)
Warning message:
package ‘readxlsb’ was built under R version 4.0.5
library(tidyr)
Error: package or namespace load failed for ‘tidyr’:
.onLoad failed in loadNamespace() for 'rlang', details:
call: NULL
error: The rlang package is not properly installed.
The DLL version does not correspond to the package version.
Please update rlang to the latest version.
Updating packages on Windows requires precautions: https://github.com/jennybc/what-they-forgot/issues/62
In addition: Warning message:
package ‘tidyr’ was built under R version 4.0.5
library(crayon)
library(openxlsx)
Attaching package: ‘openxlsx’
The following objects are masked from ‘package:xlsx’:
You have several packages installed that were built under a newer version of R than you have. This is usually not a good thing.
The best solution would be to move up to the most recent version of R. If that is not possible, I think you can revert to older versions of the packages but I do not know how.
When I try to install rlang, I am getting this error
library(rlang)
Error: package or namespace load failed for ‘rlang’:
.onLoad failed in loadNamespace() for 'rlang', details:
call: NULL
error: The rlang package is not properly installed.
The DLL version does not correspond to the package version.
Please update rlang to the latest version.
Updating packages on Windows requires precautions: https://github.com/jennybc/what-they-forgot/issues/62
In addition: Warning message:
package ‘rlang’ was built under R version 4.0.5
FWIW, in my experience a good way to deal with package installation problems on Windows is to
use GitHub - r-lib/rig: The R Installation Manager, which creates a separate package library for each R version, so you don't end up using packages built for another R version. (You'ld also need to remove your customization of package libraries if you did that.). Then