Retrieves a list of available versions for a package.


Retrieves a list of available versions for a package.


find_available_versions(package, repos = getOption("repos"),
  type = getOption("pkgType"))



the package name


character vector, the base URL(s) of the repositories to use, e.g., the URL of a CRAN mirror such as "".

Can be NULL to install from local files (with extension ‘.tar.gz’ for source packages).


character, indicating the type of package to download and install.

Possible values are "source", "mac.binary.leopard" and "win.binary": the binary types can be listed and downloaded but not installed on other platforms.

The default is the appropriate binary type on Windows and on the CRAN binary OS X distribution, otherwise "source". For the platforms where binary packages are the default, an alternative is "both" which means ‘try binary if available, otherwise try source’. (This will only choose the binary package if its version number is no older than the source version. In interactive use it will ask before attempting to install source packages.)

Want to suggest features or report bugs for Use the GitHub issue tracker. Vote for new features on Trello.

comments powered by Disqus