get links while do web scraping to google in R

I am trying to get links of google while do a search, that is, all these links:. I have done this kind of scraping but in this case I do not understand why It doesn't work, so I run the following ...