-
Notifications
You must be signed in to change notification settings - Fork 598
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
swirl errors out in the Functions module #434
Comments
Are you using R with the RGui, with RStudio, in the terminal, or through
|
I have a similar issue in the Getting and Cleaning Data when I reach the following step: ` Error in editor(file = file, title = title) : | Leaving swirl now. Type swirl() to resume. I use RStudio in Windows 10 64b *Version 0.99.892 *– © 2009-2016 RStudio, Inc. It appears to have something related to a fail when trying to open a file in my local RStudio... Does anyone have a light on this? |
i am also using RStudio in Windows 10 64b. |
I am receiving the same error, with R 3.2.4 and RStudio 0.99.893 Windows 10 64b. Ah! Found a workaround. Load R directly, not RStudio, and it will work fine. I'm just going to run this lesson in R, then jump back to RStudio after. |
What do all of you get as a result of |
|
following is the result:
|
Thanks, I'll get to the bottom of this. |
Hello all, Before you start swirl in RStudio, try entering |
hey seankross - that works for me, the script now opens in R Editor... i'm on Version 0.99.893 – © 2009-2016 RStudio, Inc. cheers, steve |
Thanks @seankross , it works fine now. |
This works for me as well! Thank you |
This works for me too!! |
thanks,@seankross,it also works for me ! |
@zlf15197 I'm working on it. It has to do with the new version of RStudio so it wasn't a change I could anticipate well. |
thanks. this solution works |
Had the same problem, worked for me too. |
Thanks a lot @seankross ! The solution works like a charm and I can now open the editor in rStudio. Just out of curiosity, what might have been at the root of this problem? |
Hello, It worked for me too! but could anyone please comment on how does the command actually function? Thanks! |
Thanks, this worked for me. |
@seankross Thx, really appreciated. I am able to see the script now... 👍 |
@seankross That Really Helped. |
I am having a similar probelm... Please help! | Would you like to continue with one of these lessons? 1: R Programming Functions Selection: 1
|
Hi every one
| Hi! I see that you have some variables saved in your workspace. To keep | Type ls() to see a list of the variables in your workspace. Then, type | Type swirl() when you are ready to begin.
| Welcome to swirl! Please sign in. If you've been here before, use the same What shall I call you? kapil | Would you like to continue with one of these lessons? 1: R Programming Dates and Times Selection: 3 | Please choose a course, or type 0 to exit swirl. 1: R Programming Selection: 1 | Please choose a lesson, or type 0 to return to course menu. 1: Basic Building Blocks 2: Workspace and Files Selection: 9 | | Functions are one of the fundamental building blocks of the R language. They ... | ... |
| You're the best! | ... |
| Keep working like that and you'll get there! | ... | ... |
| Sourcing your script... | Not quite! Try again. | Make sure to delete the pound sign so the last expression in the function is just x. |
@kapilparashar can you send a screenshot instead? |
Please find below screenshot. [image: Inline image 2] On Mon, Jul 11, 2016 at 9:20 AM, Sean Kross notifications@github.com
|
@kapilparashar Can you please post the image directly to GitHub? I can't see it. |
@kapilparashar It looks like the script editor isn't opening for you. You might have better luck using swirl within RStudio. Also make sure that you have the latest version of swirl installed. |
@sahaisiddharth Seankross
|
@kapilparashar is there a script hiding in the RStudio source window? |
@kapilparashar save the script after changing it, and then enter |
@prem92 Please read the question above for the answer. |
Looks like Rstudio needs swirl commands like submit entered prefaced with swirl:: so typing swirl::submit() submits the code |
oops sorry, didn't recognise submit() because I hadn't loaded using library(swirl) first |
The solution of typing "options(editor = "internal")" worked for me only after restarting R. |
Using R Studio 1.1.456 and it doesn't work for me even after restarting |
Hi
When I go through the functions module as soon as it reaches a certain stage it exits swirl with the following error:
| In the following question you will be asked to modify a script that will
| appear as soon as you move on from this question. When you have finished
| modifying the script, save your changes to the script and type submit()
| and the script will be evaluated. There will be some comments in the
| script that opens up, so be sure to read them!
...
|========== | 14%
| The last R expression to be evaluated in a function will become the return
| value of that function. We want this function to take one argument, x, and
| return x without modifying it. Delete the pound sign so that x is returned
| without any modification. Make sure to save your script before you type
| submit().
Error in editor(file = file, title = title) :
argument "name" is missing, with no default
| Leaving swirl now. Type swirl() to resume.
The text was updated successfully, but these errors were encountered: