gjwgit / rattleng

The New Generation R Analytics Desktop App
GNU General Public License v3.0
20 stars 8 forks source link

DATASET TAB: Implement the Package option in the DatasetButton #40

Open gjwgit opened 1 year ago

gjwgit commented 1 year ago

Description

R packages can provide provide their own datasets. In R we can check each locally installed R package for their datasets (need to check the latest way of doing this in R - seems like ls(sys,frame(0)) and checking the results for is.data.frame() or 'inherits(., sqlite.data.frame) etc is no longer the way to do that (but is still what old Rattle attempts to do).

This task will identify how to find R datasets from amongst the current R packages installed, and the parse that list in rattleng to then make available as a list with the PACKAGE button when choosing a Data Source:

Image

On choosing one of the named dataset packages (like rattle:weather where rattle is the package and weather is the dataset), it is loaded into RattleNG

Why

So that a user can access any one of the very many datasets provided by the different packages in R.

Closing Criteria

gjwgit commented 1 year ago

Implementation steps on clicking the Package button: