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…
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…
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:…
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.
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…
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…
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…
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…
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…
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…
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…
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…
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"
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…
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]]):
…