install.packages()
inside of R.
> install.packages("ape", dependencies = TRUE)
This will automatically download and install the package ``ape''.
> library("nlme")
Note that package ``nlme'' is included in the default installation, so
you did not need to install it before you use it.