Questions tagged [swirl]

An R package that provides an interactive learning environment in the R console.

Resources:

  1. project site
  2. github
  3. r-project.org
57 questions
2
votes
1 answer

"# package" error when opening Swirl lesson in R

My team is writing interactive lessons in R using Swirl (swirlify package). We were testing opening the lesson .csv file to see if it would work for users, however, came across the error in the image below. We ran 1install_course()1 in…
Amanda Lim
  • 31
  • 4
2
votes
0 answers

Failing installation of Swirl in R

Trying to install swirl but failed and following message appear in R console: package ‘sys’ successfully unpacked and MD5 sums checked package ‘assertthat’ successfully unpacked and MD5 sums checked package ‘askpass’ successfully unpacked and MD5…
2
votes
1 answer

Getting unusual, possibly malicious prompts when using swirl in Rstudio

After installing swirl and loading it into Rstudio I received this message: Do you want to set the language to Chinese traditional?(y/n) When I say no I then get this: | Welcome to swirl! Please select where you want to sign in with. 1: Google 2:…
Jaafa
  • 141
  • 2
  • 12
2
votes
1 answer

How to go back to the previous step in a Swirl() course?

I am doing a linear regression course where I am currently creating dummy variables. I had stopped it midway a few days ago and resumed it now. I would like to back up a step so that I can remember what's going on.
2
votes
1 answer

Modified paste function in R tutorial (Swirl)

Trying to create a modified version of paste function where any input text needs to be bracketed by "stop" and "start". Failing code is: telegram.paste <- function(...) {paste("START", "...", "STOP")} As a fairly new user I'm struggling to identify…
Rose Savage
  • 61
  • 1
  • 4
2
votes
2 answers

Adding new line/line break while writing swirl lesson "lesson.yaml" with Class "text" in RStudio

I am writing a swirl lesson using swirlify package functions in RStudio. Below is how lesson.yaml file looks like now - Class: text Output: Welcome to Part 1 Playing with Numbers!!! Output for which looks like How to insert a new line or line…
Sowmya S. Manian
  • 3,723
  • 3
  • 18
  • 30
2
votes
0 answers

RGUI swirl package on Windows 7 - correct answers create errors

I am trying to submit my answers to the swirl program (R programming - Functions unit). No matter what answers I put in, even the ones that I know are correct, it asks me to repeat the question. For example, "Below we will create a function called…
clupea
  • 21
  • 3
2
votes
0 answers

Why am I not able to run swirl in Rstudio?

I am on Windows 8.1 and am running R 3.2.2 in RStudio and am trying to install the package swirl. I used the command install.packages("swirl") and it installs successfully, but when I enter library(swirl), Rstudio fails to take any further action…
jrod1309
  • 29
  • 3
1
vote
1 answer

Installing dplyr through swirl in RStudio Cloud

I'm taking a course on cleaning data, and need to do swirl exercises using dplyr. I use RStudio (Posit) Cloud, R version Shortstop Beagle (4.2.3). My CRAN mirror is set to "global (CDN) - RStudio". I've tried installing dplyr inside and outside of…
kswp
  • 35
  • 3
1
vote
1 answer

What determines the 'flipped_aes' occurence in ggplot2 objects?

I am currently writing swirl lessons where im trying to test if a ggplot2 object created by the user is somewhat equal (all.equal()) to an object i create in a custom AnswerTest. however the plot object which i receive from swirl api by accessing…
Agnosie
  • 65
  • 6
1
vote
0 answers

How to delete a specific lesson progress in R swirl package? Is there a command or a function that can do this?

Suppose I have installed a course "X" from swirl in R. This course X has lessons X1, X2, X3, and so on. How do I delete my progress in a particular lesson I am in, let's say X2? What I tried: Normally, most courses will ask you to type something in…
1
vote
1 answer

R - can't install swirl on mac

I have tried so many ways, still can't fix this. Please help me. install.packages("swirl",dependencies = TRUE) trying URL 'https://mirrors.tuna.tsinghua.edu.cn/CRAN/src/contrib/swirl_2.4.3.tar.gz' Content type 'application/x-gzip' length 108666…
Chauncey
  • 13
  • 2
1
vote
2 answers

Swirl "Programming E" exercise 9: could not find function "func"

Using swirl "Programming E" exercise 9. 55% progress on the exercise and trying to use the function: evaluate <- function(func, dat){ func(dat) } Keep getting the error message: Error in func(dat) : could not find function "func"
1
vote
2 answers

r: rounding when head data

I am not able to figure out how to get r to correctly show the head of my data. This is an assignment for Swirl, so I have to figure out how to write my code in a way that Swirl will accept as the answer. Swirl wants the final printout to look…
user9237696
1
vote
1 answer

Problems loading the Swirl package

I was able to install the swirl package, but when I give the library (swirl) command, the following error appears: Error: package or namespace load failed for ‘swirl’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]): …
T. Menezes
  • 11
  • 1
1
2 3 4