Michael-Alton-Bujard
Michael-Alton-Bujard

Reputation: 21

RStudio learnr package error "ERROR: compilation failed for package 'backports'"

First question on StackOverflow. I will try to be clear.

I just installed

  1. R 4.0.1 for Windows 10

  2. RStudio (RStudio 1.3.959) for Windows 10

I tried to install learnr package, which required many other packages. The console prints toward the end:



Is it an internal issue, or a problem with the packages? Should I contact the package maintainer for 'backports', 'isoband', 'ggplot2', re-install R and/or RStudio, or something else?

Upvotes: 2

Views: 4973

Answers (1)

user13653858
user13653858

Reputation:

It seems that you run that on Windows and want to install learnr from the source (it means that you have to compile these packages). However, some packages need additional tools to compile on Windows. These tools are provided in official RTools for Windows, so install that first and try again.

And sometimes you can install the binary versions of the packages rather than the source. Then you don't need to compile:

install.packages("learnr", type = "binary")

Upvotes: 4

Related Questions