question

Upvotes
Accepted
11 1 2 4

Error when installing the Datastream packages in R

Here is the code I use:

install.packages("DatastreamDSWS2R")

library(DatastreamDSWS2R)


Error: package or namespace load failed for ‘DatastreamDSWS2R’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]): namespace ‘rlang’ 0.4.6 is already loaded, but >= 0.4.10 is required


And I also tried the the development version, not working as well:

require(devtools)

install_github("CharlesCara/DatastreamDSWS2R")

library(DatastreamDSWS2R)


Errors:

Loading required package: devtools

package �devtools� was built under R version 4.0.5Loading required package: usethis

package �usethis� was built under R version 4.0.5Error: package or namespace load failed for �usethis� in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):

namespace �rlang� 0.4.6 is already loaded, but >= 0.4.10 is required

Failed with error: ‘package ‘usethis’ could not be loaded’

Error in install_github("CharlesCara/DatastreamDSWS2R") :

could not find function "install_github"

datastream-apidsws-api
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

1 Answer

Upvotes
Accepted
1.4k 6 2 2

Hi @Danni.Qiu,


As per the error message, you will need CRAN's package 'rlang' to install 'DatastreamDSWS2R'. More info. on rlang can be found here.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea