-
Notifications
You must be signed in to change notification settings - Fork 0
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
roxygen2 #9
Comments
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. |
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 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:
...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 When I made the changes I suggested, it all looked a lot better...
|
When I said I got the same error I meant: Error in install.packages : Updating loaded packages 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
|
@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.
It is still checking Test though. @Wolflab any ideas? |
@willpearse
|
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 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!
The text was updated successfully, but these errors were encountered: