Documentation
¶
Index ¶
- func AppendIfMissing(slice []string, s string) []string
- func CheckAndSetRSymlinks(rPath string) error
- func CheckIfPythonProfileDExists() bool
- func CheckIfRSymlinkExists() bool
- func CheckIfRscriptSymlinkExists() bool
- func CheckPromptAndSetPythonPATH(pythonPaths []string) error
- func CheckPromtAndSetRSymlinks(rPaths []string) error
- func ConvertStringSliceToVersionSlice(strings []string) []*version.Version
- func ConvertVersionSliceToStringSlice(versions []*version.Version) []string
- func DownloadAndInstallPython(pythonVersion string, osType config.OperatingSystem) error
- func DownloadAndInstallR(rVersion string, osType config.OperatingSystem) error
- func GetPythonPaths() []string
- func GetPythonRootDirs() []string
- func GetRPaths() []string
- func GetRRootDirs() []string
- func PromptAndInstallPython(osType config.OperatingSystem) ([]string, error)
- func PromptAndInstallR(osType config.OperatingSystem) ([]string, error)
- func PromptAndRespond() ([]string, error)
- func PromptAndSetRSymlinks(rPaths []string) error
- func PythonInstallPrompt() (bool, error)
- func PythonLocationPATHPrompt(pythonPaths []string) (string, error)
- func PythonPATHPrompt() (bool, error)
- func PythonSelectVersionsPrompt(availablePythonVersions []string) ([]string, error)
- func RInstallPrompt() (bool, error)
- func RLocationSymlinksPrompt(rPaths []string) (string, error)
- func RSelectVersionsPrompt(availableRVersions []string) ([]string, error)
- func RSymlinkPrompt() (bool, error)
- func RemovePythonFromPath(pythonPath string) (string, error)
- func RemovePythonFromPathSlice(pythonPaths []string) ([]string, error)
- func RemoveSystemRPaths(rPaths []string) []string
- func RetrieveValidPythonVersions(osType config.OperatingSystem) ([]string, error)
- func RetrieveValidRVersions() ([]string, error)
- func ScanAndHandlePythonVersions(osType config.OperatingSystem) error
- func ScanAndHandleRVersions(osType config.OperatingSystem) error
- func ScanForPythonVersions() ([]string, error)
- func ScanForRVersions() ([]string, error)
- func SetRSymlinks(rPath string) error
- func SortVersionsDesc(versions []*version.Version) []*version.Version
- func UpgradePythonTools(pythonVersion string) error
- func ValidatePythonVersions(pythonVersions []string, osType config.OperatingSystem) error
- func ValidateRVersions(rVersions []string) error
- type InstallerInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendIfMissing ¶
AppendIfMissing Append to a string slice only if the string is not yet in the slice
func CheckAndSetRSymlinks ¶
func CheckIfPythonProfileDExists ¶
func CheckIfPythonProfileDExists() bool
func CheckIfRSymlinkExists ¶
func CheckIfRSymlinkExists() bool
CheckIfRSymlinkExists checks if the R symlink exists
func CheckIfRscriptSymlinkExists ¶
func CheckIfRscriptSymlinkExists() bool
CheckIfRscriptSymlinkExists checks if the Rscript symlink exists
func CheckPromptAndSetPythonPATH ¶
CheckPromptAndSetPythonPATH prompts user to set Python PATH
func ConvertStringSliceToVersionSlice ¶ added in v0.0.7
func ConvertStringSliceToVersionSlice(strings []string) []*version.Version
func ConvertVersionSliceToStringSlice ¶ added in v0.0.7
func ConvertVersionSliceToStringSlice(versions []*version.Version) []string
func DownloadAndInstallPython ¶
func DownloadAndInstallPython(pythonVersion string, osType config.OperatingSystem) error
DownloadAndInstallPython Downloads the Python installer, and installs Python
func DownloadAndInstallR ¶
func DownloadAndInstallR(rVersion string, osType config.OperatingSystem) error
DownloadAndInstallR Downloads the R installer, and installs R
func GetPythonPaths ¶
func GetPythonPaths() []string
GetPythonPaths returns the paths workbench will look for Python underneath the root directories with the format /root/{pythonVersion}/bin/python
func GetPythonRootDirs ¶
func GetPythonRootDirs() []string
GetPythonRootDirs returns the root directories for Python
func GetRPaths ¶
func GetRPaths() []string
GetRPaths returns the paths workbench will look for R underneath the root directories with the format /root/{rversion}/bin/R
func PromptAndInstallPython ¶
func PromptAndInstallPython(osType config.OperatingSystem) ([]string, error)
PromptAndInstallPython Prompts user if they want to install Python and does the installation
func PromptAndInstallR ¶
func PromptAndInstallR(osType config.OperatingSystem) ([]string, error)
PromptAndInstallR Prompts user if they want to install R and does the installation
func PromptAndRespond ¶
Prompt asking users which languages they will use
func PromptAndSetRSymlinks ¶
PromptAndSetRSymlinks prompts user to set R symlinks
func PythonInstallPrompt ¶
PythonInstallPrompt Prompt users if they would like to install Python versions
func PythonLocationPATHPrompt ¶
PythonLocationPATHPrompt asks users which Python binary they want to add to PATH
func PythonPATHPrompt ¶
PythonPATHPrompt asks users if they would like to set Python PATH
func PythonSelectVersionsPrompt ¶
PythonSelectVersionsPrompt Prompt asking users which Python version(s) they would like to install
func RInstallPrompt ¶
RInstallPrompt Prompt users if they would like to install R versions
func RLocationSymlinksPrompt ¶
RLocationSymlinksPrompt asks users which R binary they want to symlink
func RSelectVersionsPrompt ¶
RSelectVersionsPrompt Prompt asking users which R version(s) they would like to install
func RSymlinkPrompt ¶
RSymlinkPrompt asks users if they would like to set R symlinks
func RemovePythonFromPath ¶
RemovePythonFromPath removes python or python3 from the end of a path so the directory can be used
func RemovePythonFromPathSlice ¶
RemovePythonFromPathSlice removes python or python3 from the end of a set of path strings in a slice so the directories can be used
func RemoveSystemRPaths ¶
RemoveSystemRPaths removes the system R paths from string slice
func RetrieveValidPythonVersions ¶
func RetrieveValidPythonVersions(osType config.OperatingSystem) ([]string, error)
func RetrieveValidRVersions ¶
func ScanAndHandlePythonVersions ¶
func ScanAndHandlePythonVersions(osType config.OperatingSystem) error
ScanAndHandlePythonVersions scans for Python versions, handles result/errors and creates PythonConfig
func ScanAndHandleRVersions ¶
func ScanAndHandleRVersions(osType config.OperatingSystem) error
ScanAndHandleRVersions scans for R versions, handles result/errors and creates RConfig
func ScanForPythonVersions ¶
ScanForPythonVersions scans for Python versions in locations workbench will also look
func ScanForRVersions ¶
ScanForRVersions scans for R versions in locations workbench will also look
func SetRSymlinks ¶
SetRSymlinks sets the R symlinks (both R and Rscript)
func SortVersionsDesc ¶ added in v0.0.7
func SortVersionsDesc(versions []*version.Version) []*version.Version
func UpgradePythonTools ¶
func ValidatePythonVersions ¶
func ValidatePythonVersions(pythonVersions []string, osType config.OperatingSystem) error
func ValidateRVersions ¶
Types ¶
type InstallerInfo ¶
InstallerInfo contains the information needed to download and install R and Python
func PopulateInstallerInfo ¶
func PopulateInstallerInfo(language string, version string, osType config.OperatingSystem) (InstallerInfo, error)