CUAHSI / HydroDesktop

HydroDesktop is a free and open source GIS enabled desktop application that helps you search for, download, visualize, and analyze hydrologic and climate data registered with the CUAHSI Hydrologic Information System. HydroDesktop is part of the legacy CUAHSI toolkit and is not under active development. Click the "releases" link below to download the latest installer for Microsoft Windows.
73 stars 20 forks source link

Hydro R choose version of R #175

Open xhqiao89 opened 7 years ago

xhqiao89 commented 7 years ago

jirikadlec2[CodePlex]
I suggest improving the quotSet path to Rquot interface that is shown when the user installs HydroDesktop and runs HydroR for the first time.

In 95% of the cases, if the user installed R, he or she installed it in C:\Program Files\R\R-{X.Y.Z}\bin\i386\R.exe where {X.Y.Z} is the R version (for example R-3.0.1})

Here is how the quotSet path to Rquot could work when HydroR is run for first time:

Check if there is a folder C:\Program Files\R If yes, check for all subfolders that have the name like R-{X-Y-Z} bin\i386\R.exe inside them. If no, then R is probably not installed or it is in a non-standard location and user must set the path to R manually. If more than 1 folder is found, Show a combobox quotselect R versionquot where user can choose the version of R. After user selects the R version, check if the R.exe is valid and save the setting and start working with HydroR.