nrode / Lifelihood

MIT License
2 stars 1 forks source link

what's in: utils-pipe.R #11

Closed JosephBARBIERDARNAL closed 5 months ago

JosephBARBIERDARNAL commented 5 months ago

in utils-pipe.R, there is:

#' Pipe operator
#'
#' See \code{magrittr::\link[magrittr:pipe]{\%>\%}} for details.
#'
#' @name %>%
#' @rdname pipe
#' @keywords internal
#' @export
#' @importFrom magrittr %>%
#' @usage lhs \%>\% rhs
NULL

I don't understand what is this file supposed to do?

nrode commented 5 months ago

It's a function that allows to use the pipe argument (%>%) when using tidyverse code. The idea is that in the package you don't need to load packages using "library", you use devtools-load_all() at the beggining of the script so that packages listed in the file "DESCRIPTION" are directly loaded

JosephBARBIERDARNAL commented 5 months ago

Oooh ok I get it. That's because we can't use it with the :: operator, can we?

nrode commented 5 months ago

yes, exactly!