-
Notifications
You must be signed in to change notification settings - Fork 599
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Swirl package, #9 Functions Error #445
Comments
Try the following:
If this doesn't solve your issue please let me know. |
I tried that, it didn't work. I also tried running the command "options(editor = "internal")" before starting swirl and that didn't work either. Since none of that worked, I uninstalled and reinstalled R Studio thinking that maybe I had done something that caused it, and it still doesn't work. |
@tgsutterby what do you get as the result of |
[1] "internal" |
If you restart RStudio what do you get as the result of |
This is what I get from options()$editor, as soon as I open R Studio... Doesn't seem quite right. Maybe a problem with my editor? function (name, file, title) And this is what I get from sessionInfo() R version 3.2.3 (2015-12-10) locale: attached base packages: loaded via a namespace (and not attached): |
Also what version of swirl are you using? You can check this with |
I am having issues with the R Programming Functions lesson as well. After successfully using the mean() function, I am prompted to modify a script but I seem to be missing information after that.
I have exited swirl (bye()), closed all open R script editing windows, restarted RStudio, and restarted the lesson. |
See #434
|
Awesome, thanks @seankross! |
I am having the same problem, tried the solutions, but couldn´t make it work.
| Sourcing your script... | That's not exactly what I'm looking for. Try again. | Make sure to delete the pound sign so the last expression in the function is just x." |
Hi @sbriones, I had the same issue... when I re-read the exercise it says
Swirl automatically generate a script for me, but if it doesn't. You can just copy...
...Into the upper part of R. Then go to file, save or save as, and save your script as boring_function. For me it then worked, hopefully for you too. |
I am trying to run lesson #9 in swirl, called Functions. The lesson asks that you create a function using the code below, then submit that code using submit(). I type the code correctly, but when I use the submit() function a # is somehow inserted before the x (within my saved code). As the code with #x is not correct, I am unable to complete the assignment for Coursera.
boring_function <- function(x) {
x
}
R Studio 0.99.893 (3.2.3)
Windows 10 Home 64 bit
The text was updated successfully, but these errors were encountered: