Git Product home page Git Product logo

Comments (14)

strengejacke avatar strengejacke commented on June 11, 2024 1

Highlight outdated packages

b1

Only load required packages

b2

Ask for update

b3

All packages up to date

b4

from easystats.

strengejacke avatar strengejacke commented on June 11, 2024

I have revised the startup a bit. In needed are those packages that are out of date, which I want to print in a different color. I'm working on the coloring later.

from easystats.

strengejacke avatar strengejacke commented on June 11, 2024

It's not less verbose, but more informative. And red version number indicates outdated pkg.

Unbenannt

from easystats.

DominiqueMakowski avatar DominiqueMakowski commented on June 11, 2024

Wow, awesome!!! Looks very pro πŸ‘Œ

questions:

  • Is it possible to conditionally display the "red = needs update", i.e., if there is an outdated package, then add something like Update packages in red with 'easystats_update()'
  • Maybe replace the * by ticks (tidyverse uses: crayon::green(cli::symbol$tick))? But needs cli AND might look to tidyverserian 😁

from easystats.

strengejacke avatar strengejacke commented on June 11, 2024

b1

b3

from easystats.

strengejacke avatar strengejacke commented on June 11, 2024

in the most recent commit, I also checked if dev-versions are installed, else the function to load all libs would fail.

from easystats.

strengejacke avatar strengejacke commented on June 11, 2024

And I just copied the unicode for the two symbols, we don't need to import cli here.

from easystats.

strengejacke avatar strengejacke commented on June 11, 2024

I think we can use the "warning" sign instead of cross, else it would rather look like failed to attach, which is not the case.

from easystats.

strengejacke avatar strengejacke commented on June 11, 2024

Zwischenablage-1

from easystats.

pdwaggoner avatar pdwaggoner commented on June 11, 2024

This looks great guys! Great idea and well executed

from easystats.

pdwaggoner avatar pdwaggoner commented on June 11, 2024

However, I got this note when trying...

Screen Shot 2019-09-16 at 8 51 17 AM

from easystats.

strengejacke avatar strengejacke commented on June 11, 2024

easystats is only available from GitHub, and probably ever will. CRAN teams does not want to have packages which solely purpose is to load and check other packages (no idea how tidyverse made it to CRAN, maybe they setup this rule later).

from easystats.

pdwaggoner avatar pdwaggoner commented on June 11, 2024

I just looked at the source code and it looks pretty straightforward, with this as the on attach start up message:

.onAttach <- function(...) {
  needed <- core[!is_attached(core)]
  if (length(needed) == 0)
    return()

  crayon::num_colors(TRUE)
  tidyverse_attach()

  x <- tidyverse_conflicts()
  msg(tidyverse_conflict_message(x), startup = TRUE)
}

is_attached <- function(x) {
  paste0("package:", x) %in% search()
}

Here's how they organized the package: https://cran.r-project.org/web/packages/tidyverse/tidyverse.pdf

Not sure if this is valuable...

from easystats.

DominiqueMakowski avatar DominiqueMakowski commented on June 11, 2024

CRAN or not CRAN, I am closing this issue as it has been addressed ☺️

from easystats.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.