Skip to content

Implement function to attach/load all hySpc.* packages - #219

Merged
cbeleites merged 53 commits into
developfrom
feature/218-user-friendly-package-loading
Feb 15, 2021
Merged

cbeleites merged 53 commits into
developfrom
feature/218-user-friendly-package-loading

Conversation

@cbeleites

Copy link
Copy Markdown
Owner

closes #218

@cbeleites
cbeleites requested review from GegznaV and ximeg July 18, 2020 14:02
Comment thread hyperSpec/R/attach_hySpc.R Resolved

@GegznaV GegznaV left a comment •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The main changes I'd like:

  • to follow the tidyverse style guide of function names (except hySpc part)
  • use hy_ as function name prefix for utility functions.
  • add a user-friendly message of what packages are going to be attached.

Comment thread hyperSpec/R/attach_hySpc.R Resolved
Comment thread hyperSpec/R/attach_hySpc.R Resolved
@GegznaV

GegznaV commented Jul 24, 2020 •

Copy link
Copy Markdown
Collaborator

The function was improved:

  • the function tries to attach non-attached packages only,
  • message about packages to attach is created,
  • parameter quiet controls, which messages should be printed to console,

Additionally:

  • improved documentation,
  • unit tests added,
  • NEWS.md updated.

@GegznaV GegznaV added the Type: enhancement 🎈 asking for a new feature. label Jul 27, 2020
@GegznaV

GegznaV commented Sep 7, 2020 •

Copy link
Copy Markdown
Collaborator

The demonstration of function messages in this PR:

hyperSpec::hy_list_installed_hySpc_packages()
#> [1] "hyperSpec"      "hySpc.chondro"  "hySpc.dplyr"    "hySpc.ggplot2" 
#> [5] "hySpc.read.txt" "hySpc.testthat"
hyperSpec::hy_attach()
#> 
#> ------------------------------------
#> Attaching the following R hyperSpec   
#> family packages: 
#> 
#>   hyperSpec
#>   hySpc.chondro
#>   hySpc.dplyr
#>   hySpc.ggplot2
#>   hySpc.read.txt
#> 
#> ------------------------------------
hyperSpec::hy_attach()
#> 
#> All installed R hyperSpec family packages are already attached.

@GegznaV
GegznaV requested a review from eoduniyi December 21, 2020 18:55
@GegznaV

GegznaV commented Dec 21, 2020

Copy link
Copy Markdown
Collaborator

@eoduniyi Would you have time to review this PR and test if this PR works as expected? Could you also express your opinion on the current features? Do you have some suggestions?

@eoduniyi

Copy link
Copy Markdown
Collaborator

@eoduniyi Would you have time to review this PR and test if this PR works as expected? Could you also express your opinion on the current features? Do you have some suggestions?

Hi @GegznaV,

After building and installing the feature/218-user-friendly-package-loading branch

> hyperSpec::hy_list_available_hySpc_packages()
[1] "hySpc.dplyr"    "hySpc.skeleton" "hySpc.testthat" "hySpc.read.txt" "hySpc.ggplot2" 
[6] "hySpc.chondro"  "hySpc.read.mat"
> hyperSpec::hy_attach()

------------------------------------
Attaching the following R hyperSpec   
family packages: 

  hySpc.chondro
  hySpc.read.txt
  hySpc.read.Witec

------------------------------------

I can confirm that everything is working as expected

@cbeleites
cbeleites merged commit c92651d into develop Feb 15, 2021
@cbeleites
cbeleites deleted the feature/218-user-friendly-package-loading branch February 15, 2021 18:16
@GegznaV
GegznaV removed request for eoduniyi and ximeg February 15, 2021 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: enhancement 🎈 asking for a new feature.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Provide user-friendly way of loading/attaching the hySpc.* packages

3 participants