Open jenessalemon opened 7 years ago
You're using words like "doomed" and all caps. I have sympathy, but (1) panicking never helped anyone and (2) if you had done this in the session on Monday, as I told the entire class to do, then you wouldn't be in this situation.
You need to run roxygen on the folder that contains your package. /Users/jimblotter/Desktop/Grad School/Programming_for_Biologists/r-world-jenessalemon/
is not your package. /Users/jimblotter/Desktop/Grad School/Programming_for_Biologists/r-world-jenessalemon/RWorld
is your package.
I got like 100 errors. I can't copy and past them all in here, because there is a "Updating Loaded Packages" window that pops up asking me if I want to restart R, and no matter whether I push Cancel, No, or Yes, it pops up again. But the errors say:
Error in install.packages : Updating loaded packages First time using roxygen2 : Upgrading automatically
And their might be more errors at the top, but I can't see them because the window that pops up won't go away. It's quite resilient, you see. So, to me it seems like this error is saying that the package is already loaded, so it can't add the help files. I would think the package has to be made in order to add help files, or there would be no help files to add to! To confirm this I deleted my package and ran it again and was right, there were errors saying that the package didn't exist. So I'm guessing that is not what the error messages mean, and I'm wondering if you know what they mean.
Push your new version of the package to github and i will take a look at it.
make a comment here when you have pushed it up
Done
OK, a few things:
roxygenize("r-world-jenessalemon/RWorld")
install.packages('roxygen2')
at the start of your plants_pack.R
file. Get rid of anything in those files that doesn't define a function - nothing else should be in there...if you do that, then (wonderfully!) you're basically there. The other error messages you'll get make perfect sense (e.g., "undocumented arguments for function XXX" where you haven't documented an argument in function XXX).
to be clear: you need to run roxygenize, you don't need to type it into a file. You type it into the R console, not the file.
Ok, I've removed the first three lines (that weren't part of a function.) I still get the same error. I would appreciate it if you could call me on Skype if you are available! Not sure what's going on here.
I can't I'm afraid. If you had given me an error message I might be able to help more.
When I made the changes I suggested, it all looked a lot better... On Fri, 18 Nov 2016 at 17:50, jenessalemon notifications@github.com wrote:
Ok, I've removed the first three lines (that weren't part of a function.) I still get the same error. I would appreciate it if you could call me on Skype if you are available! Not sure what's going on here.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/pearselab/r-world-jenessalemon/issues/9#issuecomment-261595942, or mute the thread https://github.com/notifications/unsubscribe-auth/ABLcUiuRjWIbpCfharof4xVlboWZOF1sks5q_eV5gaJpZM4K2DLA .
When I said I got the same error I meant: I can't copy and past them all in here, because there is a "Updating Loaded Packages" window that pops up asking me if I want to restart R, and no matter whether I push Cancel, No, or Yes, it pops up again. But the errors say:
Error in install.packages : Updating loaded packages First time using roxygen2 : Upgrading automatically
And their might be more errors at the top, but I can't see them because the window that pops up won't go away. It's quite resilient, you see. So, to me it seems like this error is saying that the package is already loaded, so it can't add the help files. I would think the package has to be made in order to add help files, or there would be no help files to add to! To confirm this I deleted my package and ran it again and was right, there were errors saying that the package didn't exist. So I'm guessing that is not what the error messages mean, and I'm wondering if you know what they mean.
I will say this again: when I made the changes I described to you, this went away... On Fri, 18 Nov 2016 at 17:56, jenessalemon notifications@github.com wrote:
When I said I got the same error I meant:
I can't copy and past them all in here, because there is a "Updating Loaded Packages" window that pops up asking me if I want to restart R, and no matter whether I push Cancel, No, or Yes, it pops up again. But the errors say:
Error in install.packages : Updating loaded packages First time using roxygen2 : Upgrading automatically
And their might be more errors at the top, but I can't see them because the window that pops up won't go away. It's quite resilient, you see. So, to me it seems like this error is saying that the package is already loaded, so it can't add the help files. I would think the package has to be made in order to add help files, or there would be no help files to add to! To confirm this I deleted my package and ran it again and was right, there were errors saying that the package didn't exist. So I'm guessing that is not what the error messages mean, and I'm wondering if you know what they mean.
—
You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/pearselab/r-world-jenessalemon/issues/9#issuecomment-261597327, or mute the thread https://github.com/notifications/unsubscribe-auth/ABLcUm9hqqP4kcT-4ozqFsu0j0RnYW-_ks5q_ebFgaJpZM4K2DLA .
@willpearse Ok I worked through it with a small package with a single function like you suggested in the announcements and I am really really close here. I got roxygenize to generate my help files (I think, it's pushed if you have time to check it out.) So I am now trying to check my package. Question that you will probably think is silly: How do I tell R Studio to check my RWorld package rather than my Test package? I can't figure out how to change the directory. So far I have tried: 1) opening all the files in RStudio. 2) navigating to RWorld in the "Files" menu.
It is still checking Test though.
@Wolflab any ideas? @sylviakinosian ?
@willpearse I tried this too:
setwd("~/Desktop/Grad School/Programming_for_Biologists/r-world-jenessalemon/RWorld")
I figured out how to run it from command line.
This is what I said when I said I got 100 errors:
"I got like 100 errors. I can't copy and past them all in here, because there is a "Updating Loaded Packages" window that pops up asking me if I want to restart R, and no matter whether I push Cancel, No, or Yes, it pops up again. But the errors say:
Error in install.packages : Updating loaded packages First time using roxygen2 : Upgrading automatically"
I did tell you what the errors say. And I was saying that the same error was repeated 100 times, and it was for all I could tell.
Let's talk about this when it's your turn for the one-on-one sessions - I think some things are easier to discuss "in person"
@willpearse Hey Will, I took out everything that is not an actual function, removed all non-code, and got the same error. For some reason roxygenize won't run either. Here's the error:
I am trying to run it through plants_pack.R, lines 1-3.
roxygenize("/Users/jimblotter/Desktop/Grad School/Programming_for_Biologists/r-world-jenessalemon") First time using roxygen2. Upgrading automatically... Error in read.dcf(file, keep.white = "Authors@R") : cannot open the connection In addition: Warning message: In read.dcf(file, keep.white = "Authors@R") : cannot open compressed file '/Users/jimblotter/Desktop/Grad School/Programming_for_Biologists/r-world-jenessalemon/DESCRIPTION', probable reason 'No such file or directory
Except there IS such file! I can see it by navigating to r-world-jenessalemon in my Finder window. So I'm not sure what to do. I'm wondering if you will have time to help me see what is going on. I NEED to be able to complete the package or my grade is doomed... If there is a waiting list, put me on it!