 				summary: row.Title
 				description: row.Description
 				url: "https://cran.rstudio.com/web/packages/#{row.Package}/index.html"
-				command: """
-					sudo Rscript -e '
-						installPackages(#{row.Package});
-						suppressMessages(suppressWarnings(if(!require('#{row.Package}')) {
-							stop('Could not load package', call.=FALSE)
-						}))
-				"""
+				command: [
+					"sudo", "Rscript", "-e", "install.packages('#{$scope.installedPackage}');
+					suppressMessages(suppressWarnings(if(!require('#{$scope.installedPackage}')) {
+						stop('Could not load package', call.=FALSE)
+					}))"
+				]
 			result = {}
 			for p in packages
 				result[p.name] = p

					summary: summary
					description: null
					url: null
					command: "sudo apt-get install #{name}"
				}
		result = {}
		for p in _.without(packages, undefined)

							description: p?.details?.info.description
							url: p?.details?.info.package_url
							summary: p?.details?.info.summary
							command: ["pip", "install", p.name]
					callback null, packages
			)

