Bug 360350 - enhanced context menu for objects
Summary: enhanced context menu for objects
Status: REPORTED
Alias: None
Product: rkward
Classification: Applications
Component: User Interface (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: RKWard Team
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-10 10:10 UTC by Jan
Modified: 2016-03-14 08:09 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
picture illustrates idea of enhanced context menu (91.85 KB, image/png)
2016-03-10 10:10 UTC, Jan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan 2016-03-10 10:10:11 UTC
Created attachment 97811 [details]
picture illustrates idea of enhanced context menu

--- Please fill in ---
--- IMPORTANT NOTE: Please make sure to read http://rkward.kde.org/bugs for guidelines on what information to include in your report. ---
Comment 1 Jan 2016-03-10 10:17:40 UTC
Sorry, I pressed accidentally RETURN at the wrong formular element. That submitted the formular without the description.

Often I need to look at the first part of a R object. So I type into the console e.g. head(mydataframe). Or I want to know the number of rows and I have to type nrow(mydataframe).

My idea/wish is that these commands are available in the context menu of the Workspace browser. Selecting and clicking the command copies the command to the R console and executes it.
Comment 2 Jan 2016-03-10 10:22:04 UTC
The entries in the context menu should be configured by the user because the much-needed differ for each one.
Comment 3 Thomas Friedrichsmeier 2016-03-13 20:39:20 UTC
Thanks for your suggestion. Makes sense.

I am slightly surprised by your choice of example actions, though: E.g. dimensions (rows / columns) is already visible from the tool-tip, when hovering the mouse over an object. Also, the existing "View" action is meant to serve a somewhat similar purpose (although, admittedly, it has not seen any love in a _long_ time).

I am wondering: Would it make more sense to allow (the same / different?) custom areas in the "View" window, in addition to / instead of your suggestion?

Brainstorming welcome!

Regards
Thomas
Comment 4 Jan 2016-03-14 08:09:11 UTC
(In reply to Thomas Friedrichsmeier from comment #3)

Thank you for your reply. I'm delighted about your interest.

> I am slightly surprised by your choice of example actions, though: E.g. dimensions (rows / columns) is already visible from the tool-tip, when hovering the mouse over an object.

You're right. Sometimes "nrow" and "length" return different results so a quick check via context menu would be useful (for me). Same with "names" and "colnames".

> Also, the existing "View" action is meant to serve a somewhat similar purpose

"View" isn't a good choice for an overview of large objects. Clicking at the tab "print(x)" shows "Fetching information. Please wait." for up to a minute.
The command "head" give results much faster.

> I am wondering: Would it make more sense to allow (the same / different?) custom areas in the "View" window, in addition to / instead of your suggestion?

This is another possibility.
Sometimes the first tab of the "View" window "summary(x)" also needs some time to be ready (for large objects). So the first tab should have only a limited amount of information.

Example:
first tab: various
ncol: ...
nrow: ...
length: ...
(Please both nrow and length)
names: ...
colnames: ...
(Please both names and colnames)

second tab: head(x)

third tab: tail(x)

(or head(x) and tail(x) combined in one tab)

fourth tab: summary(x)

fifth tab: print(x)

sixth tab: str(x)

Regards

Jan