# NOT RUN {
stock(fortunes, DesiQuintans/emptyRpackage, cowsay, lib = tempdir(), update_all = TRUE)
# shelf() returns invisibly; bind its output to a variable or access the .Last.value.
print(.Last.value)
#> fortunes emptyRpackage cowsay
#> TRUE TRUE TRUE
# And to confirm that they are installed but not attached:
check_attached(fortunes, DesiQuintans/emptyRpackage, cowsay)
#> fortunes emptyRpackage cowsay
#> FALSE FALSE FALSE
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab