/// <summary> /// Synchronously install a set of R packages with dependencies. /// Typically only used during setup from the MSI custom action. /// </summary> public static void InstallSynchronously(IEnumerable <string> packageNames, int msTimeout, IActionLog log, string rBasePath) { string arguments = PackageListToString(packageNames); if (!Install(arguments, log, rBasePath).Task.Wait(msTimeout)) { log.WriteFormatAsync(MessageCategory.Error, Resources.Error_InstallTimeout_Format, arguments); } }
/// <summary> /// Synchronously install a set of R packages with dependencies. /// Typically only used during setup from the MSI custom action. /// </summary> public static void InstallSynchronously(IEnumerable<string> packageNames, int msTimeout, IActionLog log, string rBasePath) { string arguments = PackageListToString(packageNames); if (!Install(arguments, log, rBasePath).Task.Wait(msTimeout)) { log.WriteFormatAsync(MessageCategory.Error, Resources.Error_InstallTimeout_Format, arguments); } }