pearselab / r-intro-jenessalemon

r-intro-jenessalemon created by GitHub Classroom
0 stars 1 forks source link

lesson_2 #7 #5

Open jenessalemon opened 7 years ago

jenessalemon commented 7 years ago

Hi Will, I seem to have created an infinite loop. (Isn't that what is happening when you just see plus signs?) I have been over and over it and can't see the problem. I was really proud that I came up with it and was so excited for it to work. I'm heartbroken!

willpearse commented 7 years ago

I don't know what you're talking about, because it works fine for me! :D

Try deleting all the variables in your workspace (rm(list=ls())), then loading both your gompertz and plot.gompertz functions again. You might find it works now.

It's quite common, when writing code, to accidentally run the old version of what you're working on because you've forgotten to load it back into your workspace etc. It's a good idea to get into the habit of clearing and starting again if you get an error message that doesn't make any sense...

jenessalemon commented 7 years ago

I cleared my environment, and it must have done something to help because it worked! Thanks for the tip.

willpearse commented 7 years ago

No worries!