-
Notifications
You must be signed in to change notification settings - Fork 9
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
Testing from the POV of unskilled user #69
Comments
Round 2, on pc. Testing in Windows. Noticed this warning, but it did not stop code, so could go unnoticed.
This website says: “Note that rtools40 is only needed build R packages with C/C++/Fortran code from source. By default, R for Windows installs the precompiled “binary packages” from CRAN, for which you do not need rtools!” Running OK. Error at same point.
loads fine but does not solve issue.
solves issue. Runs to line144
Starts again …
Installed R tools and started again. Restarted R Studio Everything ran. Labeling on some figures was a bit clunky (figure number labels sometimes not completely in the box, so hard to interpret). |
Round 3, back on Mac. Restarted R Studio. Everything ran fine. |
@regnans well first, yay it finally worked! But those issues are troubling and, annoyingly, more R/Rstudio than the package itself! That makes it very difficult to try and deal with. My initial thought is that R wanted you to respond to upgrades with packages before running. Maybe we need to tell users to first install the package and answer any and all R prompts about upgrading packages. I don't, for the life of me, understand why dplyr gave you such issues other than perhaps the install got corrupted the first time? Not sure, but did it tell you you needed magittr? That isn't a dependency? Strange As for plots, the best place to see those are in the output folder. the on screen is just to make it easier but the versions written to file are far better, and don't have those issues. The challenge is that most of the problems, if not all, are issues with R and Rstudio, including how Rstudio plots graphs when the graph size/ graph window size is small but doesn't actually indicate a bug and as I said the graphic files will be fine. Going to have to think about if/how any of this can be addressed other than telling users that these could be R issues they deal with and how to try and get around them |
in effect the output figures will /should look more like these versions |
No, it didn't tell me it needed magittr. When it failed on
I think that is reasonable. There are a few things that could be included in the README to help newbies get started. It seemed that getting all of the packages up and then restarting R Studio sorted everything out. I'd be happy to help write some text for the README to help out the less R literate. |
@regnans that would be very helpful thanks! |
@regnans some questions
I don't follow this? The scripts load all of the packages into R already
Again I think you issue was that you needed to first address R asking you what packages to update and because you skipped over that it failed? So does that mean we need another comment about first updating your packages first, then loading the R package and run it? @neo0351 ? That is, how would we tell folks to update R/packages and not conflate that with loading the R package?
This is true, but true for and R or R package. So are you asking that we explain how to update R first? or explain what it means to load R packages? Some clarification would help to make sure I understand what text would be helpful
I think most problems are with people who just need to get their R environ ready. So wonder how we can walk someone through that? Again lots of this is, we expect a certain level of understanding of using R. We arent really expected to train someone how to use R, are we? Thats what I struggle with |
|
@regnans hmm...... For 1 I see your point and I don't yet have a very basic solution. Its too hard to express here whats up but there seems to be some issue with the fundamental "how do we get the code to a user" issue. That would usually be git clone or download zip and extract but I don't see any easy way right now to just download one of the scripts. THat said they do open in a browser which does mean you can do copy and paste But I think you are saying there needs to be a way to get the script locally so they can open in R studio and run it? Lets think about this |
Some people unfamiliar with GitHub would look for a "save as", which doesn't exist. Your suggested solution of instructions to download the zip and run from there is good. I will update that section in the README. |
@regnans when you have a chance, lets make sure the latest PR addresses this and if so we can then close |
yes, closing. |
I'm trying to be "that reviewer" that has no idea what they are doing with GitHub or R. (not that far from the truth).
Running spectra-trait_reseco_lma_plsr_example.R
I had some issues getting started, but will make that a different issue.
Once I had a the code running in R Studio (v1.4, with R 4.0.3), these are potential issues.
At Line 31: install devtools. Outputs list of packages (n = 56). Instructions about "enter one or more numbers" seem to be repeated and confusing.
Entered “1”
Next output message:
Entered “Yes” (maybe guidance to this should be given in instructions).
Continued running chunks, all working until Line 99.
Tried to load packages that might help with "%>%"
Testing ended at this point. Unable to continue.
I have recently used dplr in other code without an issue. Not sure what has changed.
The text was updated successfully, but these errors were encountered: