use of org.rstudio.studio.client.workbench.views.packages.model.PackageInstallRequest in project rstudio by rstudio.
the class InstallPackageDialog method collectInput.
@Override
protected PackageInstallRequest collectInput() {
// package install options
String libraryPath = installContext_.getWriteableLibraryPaths().get(libraryListBox_.getSelectedIndex());
boolean installDependencies = installDependenciesCheckBox_.getValue();
PackageInstallOptions options = PackageInstallOptions.create(installFromRepository(), libraryPath, installDependencies);
if (installFromRepository()) {
return new PackageInstallRequest(packagesTextBox_.getItems(), options);
} else {
return new PackageInstallRequest(archiveFilePath_, options);
}
}
Aggregations