Based on your response, I'm guessing that I've been creating a lot of manual work for myself. Here's an example of my process. Let's imagine that the arguments are variables required to build the URL.
# Sample Function
scrape_website <- function(movie_genre = "Action", stars = "4"){
base_url <- "http://www.something.com"
built_url <-
glue::glue("{base_url}?{movie_genre}&{stars}") %>%
as.character()
page<- built_url %>% read_html()
I think you get the point. I would generally take the function arguments and write them in code, then run each line of code individually. I would then go into each object and see what changed, etc. Using glimpse, or view.
# Function Inputs
movie_genre = "Action"
stars = "4"
Sounds like this isn't the right approach?