how to button.click

I need to make a button.click to click on a web site on a button, what do I need to code and do I need to install a specific package?

Thank you

Do you mean in shiny?

https://shiny.rstudio.com/articles/action-buttons.html

is it the way to activate a click on a button?

You might need to provide more context. Can you provide a reproducible example?

Exemple if I want to click on reply button in this forum:

html1 = read_html("how to buttom.click - #4 by williaml")
button1 = html1 %>% html_element("#ember227 > span") %>% html_text()

any conditions..
button1.click()

So you are using rvest then. I've edited your tags, but you should note that in your post.

Maybe have a look at these?