private IEnumerable <IRInterpreterInfo> GetInstalledCranR(IEnumerable <InstalledPackageInfo> packagesInfo, ISupportedRVersionRange svl) { var selectedPackages = packagesInfo.Where(p => p.PackageName.EqualsIgnoreCase("r-base-core") && svl.IsCompatibleVersion(p.GetVersion())); foreach (var package in selectedPackages) { yield return(RInterpreterInfo.CreateFromPackage(package, "CRAN R", _fileSystem)); } }
private IEnumerable <IRInterpreterInfo> GetInstalledMRO(IEnumerable <InstalledPackageInfo> packagesInfo, ISupportedRVersionRange svl) { var selectedPackages = packagesInfo.Where(p => p.PackageName.StartsWithIgnoreCase("microsoft-r-open-mro") && svl.IsCompatibleVersion(p.GetVersion())); foreach (var package in selectedPackages) { yield return(RInterpreterInfo.CreateFromPackage(package, "Microsoft R Open", _fileSystem)); } }