Open nicholasjhorton opened 4 years ago
The way tidyverse does this is a based on a lot of functions that tidyverse doesn't export, and some appear to be hard-coded for tidyverse rather than provided as general functions that could work for package.
But perhaps I can tweak our zzz.R to improve this a bit.
OK. I think I can greatly reduce the visual clutter if we
Might also want to
I'm doing some experimenting. Stay tuned.
Still WIP, but here is what I currently have locally.
> library(mosaic)
Registered S3 method overwritten by 'mosaic':
method from
fortify.SpatialPolygonsDataFrame ggplot2
The 'mosaic' package masks several functions from core packages in order to add
additional features. The original behavior of these functions should not be affected by this.
Attaching package: ‘mosaic’
The following objects are masked from ‘package:dplyr’:
count, do, tally
The following object is masked from ‘package:Matrix’:
mean
The following object is masked from ‘package:ggplot2’:
stat
The following objects are masked from ‘package:stats’:
binom.test, cor, cor.test, cov, fivenum, IQR, median, prop.test, quantile, sd, t.test, var
The following objects are masked from ‘package:base’:
max, mean, min, prod, range, sample, sum
@nicholasjhorton: Do we want to reinstate any of our previous messages (pointers to tutorials, mention of ggformula, etc.) or leave as is?
I now wonder whether the pointers to tutorials would be good to add back. But I'm pleased that things are slightly less chatty. Thanks!
For the tutorials, do you mean the ggformula tutorials? If so, we should fix that in ggformula, not here. Did we have a turorial pitch for mosaic proper?
I don't think that we have one for mosaic, but the ggformula one is pretty close.
Are there ways to do some light pruning on the
mosaic
startup messages? It's a low priority query but it's been bugging me.All I can really see as fully redundant is the "Have you tried the ggformula package for your plots?" since the tutorials are plugged.
Perhaps consider the way that the tidyverse package reports masking?
Note that the colors used by the tidyverse package are less jarring for novice and experienced users.