-
Notifications
You must be signed in to change notification settings - Fork 103
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
Interesting code for layout and possible improvements in the script window #8500
Comments
@rdstern I don't think any of the points above require changes to the script window. I think points 4 and 5 relate to the @ChrisMarsh82 I know that you have also looked at the |
@lloyddewit oh this is such an interesting response. I was assuming that, because these points start in the script window, then they are to do with you. Your response, as I understand it, is that because they finish as results in the Output window that it encroaches on someone elses territory! I add @Patowhiz into this discussion, because he is also handling changes in the output window. a) To me it is obvious that the default should be for comments in the script window to be echoed in the output window. These comments are, just about, the parallel of the special comments feature in the dialogs. This comments feature in the dialogs was a strong request when we started R-Instat, and I suggest it applies similarly in the provision of scripts in the code. We could (of course) go a step further. We currently have the option to not put the dialog comments into the output window. So could the same option be applied to these comments too? b) The print case is different. This is a standard operation on an R object, so the result should go into the output window. I hope that is simple to do. |
@lloyddewit I know why about item 4 and 5. We have discussed about why item 5 is happening. My understanding is you are now looking into item 5 in a general way. I'm happy to help if need be. @rdstern I've explained to @lloyddewit the limitations that we have in regards to the print function. With the advancements of the R Script library that @lloyddewit is currently working on, there is a possibility that we could check on the properties of the object before print is called, then react to the print function accordingly. I have some ideas on how we could efficiently do this. Currently, our print alternative is |
@rdstern I had a good discussion with @Patowhiz yesterday about this. I support his comments above. The only part I'm unsure about is the ability of the RScript library to determine if a particular object should be displayed as text/image etc. I'm not yet sure how we would do this. I will implement 4 and 5 above (comments displayed and |
This is just a technical note for myself. |
Raised lloyddewit/RScript#18 for this |
@lloyddewit I include this (possibly these) examples largely for record and information.
I have been running different examples of R-code in the latest merged version. So far, so good.
For information I attach an example where there is a small thing that doesn't seem to run, I also like the layout of the long commands:
This is from the ez package, which is not installed. At this stage I do not wish to install it. It is, however, a package that sounds useful, so it is possible that some R-Instat users may wish to add it themselves. Then they could use the commands through the script window.
a) There is an initial point here, presumably for Chris, that I raised in #7064. It would be a good time for him, or you maybe, to at least check whether it is easy? This would make the installation of extra packages easier for a user. (Currently they have to run as administrator, which is not the same as RStudio.
b) I installed ez and made it an example where I run the code, to see if it works. Here is an example:
library(ez)
The text was updated successfully, but these errors were encountered: