i was having the same problem and i used this code suggested by Gavin Simpson and it work. Thank you!!!
install.packages( "ggvegan", repos = c( "https://gavinsimpson.r-universe.dev", "https://cloud.r-project.org" ) )