In dplyr
one can write code like e.g. using the '.' to refer to the data in the pipe
x <- data.frame(x = 2:4)
y <- data.frame(y = 1:3)
y %>% dplyr::bind_cols(x,.)
but when using it in a function and running the package check it produces the
no visible binding for global variable '.'.
What is the best practice to handle the NOTE?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…