sonatype-nexus-community / oysteR

Create purls from the filtered sands of your dependencies, powered by OSS Index
https://sonatype-nexus-community.github.io/oysteR/
Apache License 2.0
40 stars 9 forks source link

Dev: Message on load #6

Closed csgillespie closed 4 years ago

csgillespie commented 4 years ago

Do you want:

onAttach = function(...) { #nolint
  if (!interactive()) return()
  packageStartupMessage("See https://www.sonatype.com/ for details.")

See https://github.com/sonatype-nexus-community/oysteR/pull/3 for brief discussion

DarthHater commented 4 years ago

I'm mostly curious, what does this do? Hah. I know I can pull the code down and look at it, just curious overall.

csgillespie commented 4 years ago

So this is the mechanism that people should use to display start-up messages.

In R, the message will get displayed when you type

library(osyteR)

As we've done it "properly", the message can be hidden using standard mechanisms

Up to you if you want it. I just copied your start-up message.

DarthHater commented 4 years ago

I'll give it a twirl in a bit! Thanks for explaining!

csgillespie commented 4 years ago

I've added the URL to the verbose output - https://github.com/sonatype-nexus-community/oysteR/commit/581cabe0849c5674592cb27088015596dff30ec6 This is a lot less intrusive

So just delete zzz.R?

DarthHater commented 4 years ago

I think we fixed a bit of this on the dev branch @csgillespie , @brittanybelle and I changed the link to the link for this repo (instead of our corporate website). Wanna take a gander and maybe close this?