question

Upvotes
Accepted
11 2 6 6

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 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
Upvotes
Accepted
5.5k 21 2 6

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 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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