I receive an error when trying to connect to help documentation (.rd file) after installing a package I created. The function itself works fine, however I receive "Error in gzfile(file, "rb") : cannot open the connection" either when the pop up help shows while typing in the function name or when going to the help via '?'.
library(devtools)
library(roxygen)
setwd(workingdirectory)
create("helperColumns")
#' A helpful proportion column function
#
#' This function creates a proportion column based on a group.
#' @param df,group
#' @keywords proportion
#' @import tidyverse
#' @export prop_column_group
#' @examples
#' prop_column_group(mtcars,cyl)
prop_column_group <- function(df, group){
group <- enquo(group)
df %>% count(!!group) %>% rename(Count = n) %>% mutate(Percent = round(Count/sum(.$Count) *100,3))
}
setwd("./helperColumns")
document()
setwd("..")
install("helperColumns")
library(helperColumns)
??prop_column_group