Support for distance package in Azure Machine Learning Studio - r

I'm checking this url https://learn.microsoft.com/en-us/azure/machine-learning/studio-module-reference/r-packages-supported-by-azure-machine-learning#bkmk_D
to confirm wheter or not this supports the Distance package http://distancesampling.org/R/
Seems not, but I'm not 100% sure this is the right place to check it. Am I doing it right here?

in order to confirm what are the installed R packages in AML Studio you could use an Execute R Script module with just the following lines:
data.set <- data.frame(installed.packages())
maml.mapOutputPort("data.set");
The supported Microsoft R Open 3.2.2 version in AML Studio includes 564 packages, you should visualize something like this in the Result Dataset port of the module:

Related

SQL Server machine learning services r version 3.5

According to this link, SQL Server machine learning service's highest R version is 3.3. Does anyone know when one can upgrade to version 3.5 or later?
Or is my only option to switch to sql server 2019?
Thanks.
Well cs0815, let's take a look.
According to your post, you tagged this with sql-server-2017, so I'll be basing this on that version.
After reading through your link and this one, I was thinking there might be two options:
Hack a new version of R into the R-Services module of SQL server.
Setup an R-Client with version 3.5
However, it looks like R-Client is for a different use case than you might need so we'll focus on an attempt to replace R in R-Services with a higher version directly.
After installing a new instance of 2017 with the following features:
R Services natively installs to:
"C:\Program Files\Microsoft SQL Server\MSSQL14.MSSQLSERVER\R_SERVICES"
Using WinDiff, I pulled the following comparisons vs CRAN R 3.5.3 and Microsoft Open R 3.5.3 and not surprisingly the Microsoft Open R is much closer.
Full diffs:
R_Services vs CRAN R
R_Services vs MS OPEN R
Personally, I'm not at the level to understand all the differences in R Core / runtime between R 3.3 (R_Services) and R 3.5.3 so of main interest to me is the library diff.
What exists in R_Services which does not in Open R is what I'm assuming to be the core of what makes R_Services work with SQL Server so that will be where we need to fill in those gaps with our "replacement" R_Services but with v3.5.3.
Libraries which are completely missing - not just added docs or some small difference:
compatibilityapi
dorsr
microsoftml
mrsdeploy
olapr
revopemar
revoscaler
revotreeview
sqlrutils
And that information leads to us to the Microsoft MLS Docs "R Packages" resource:
https://learn.microsoft.com/en-us/machine-learning-server/r-reference/introducing-r-server-r-package-reference
Which, no, it looks like those packages are not publicly available through MRAN, CRAN, or even directly via devtools from github.
Still, searching brought me onto this possibility:
https://learn.microsoft.com/en-us/sql/advanced-analytics/install/upgrade-r-and-python?view=sql-server-2017#offline-binding-no-internet-access
Download after signing up with Visual Studio Dev Services:
https://learn.microsoft.com/en-us/machine-learning-server/install/machine-learning-server-windows-install#download-machine-learning-server-installer
So - binding this version of MLS to our existing instance:
After that installation is fully complete, let's check and see what's available on our server!
So first things first, this being a new instance of SQL Server - Set to enable external scripts:
sp_configure 'external scripts enabled', 1;
RECONFIGURE WITH OVERRIDE;
And then to bring this soup to nuts:
EXECUTE sp_execute_external_script #language = N'R'
, #script = N'
print(R.Version())
';
output below:
$language
[1] "R"
$version.string
[1] "R version 3.5.2 (2018-12-20)"
$nickname
[1] "Eggshell Igloo"
TLDR: Yes - download the MLS 9.4.7 packages from Visual Studio Dev Services and install on server host.

Enable R (RLANG) in SAS Studio for OSX (virtual box)

I have installed SAS Studio in OSX via virtualBoxVM. All seems working except making R run from SAS, which is what I am looking for.
Running :
proc options option=RLANG;
run;
I get
SAS (r) Proprietary Software Release 9.4 TS1M3
NORLANG Disables SAS from executing R language statements.
Changing the Autoexec file to:
-RLANG
-config "/Users/me/SAS/SAS_Base_OpenSrcIntegration/sasv9.cfg"
does not make the trick. Neither changing configuration files...
Any ideas on how to activate RLANG in OSX?
I believe you need to set the RLANG option in the .cfg file, not the autoexec.sas file. Once you do that, restart the SAS server so that it picks up the config change.
I don't have a configuration like this. Let me know if you have problems.
EDIT:
You can find the default configuration file in
*SASHOME*/SASFoundation/9.4/nls/sasv9.cfg
The exact location will depend on where SAS is installed, version, etc. In general, look for the NLS folder under SASFoundation.

How to autoupdate version number on successful build of an R package

I found this article (original) about how to auto update a package version number in R.
I would like to implement it in the same way as they suggest but I fail at the point to create my own Makefile to build a package.
The function they provide is working fine.
Can anyone help me to create a Makefile to check, build, if both are successful increase the version number, build under new version number. Within RStudio it is possible to select Makefile as build tool.
In general I like the idea to have all development packages with a 4th version number like 0.1.2.9001. At the moment I always overwrite my packages and only set three numbers manually like 0.1.3.

Which R version my PC currently Uses?

Im currently using R through Java, and im not sure which version im using.
I've stetted in R studio my R version into version 2.15.3 which is what i need:
And so is my enviorment variable setting (R_home):
But typing in the command line : "R":
So which version in being used?
Based on what you describe, you have the most updated version of R installed and RStudio is able to detect it. However the version of R that is currently in your OS environment variable (and hence used by Java) is not the most recent,
=> you need to update your PATH environment variable.
The procedure might be a bit different whether you are on Unix or Windows.
I am sure you'll find plenty of ressources on Internet to help you do that How to update PATH variable permanently from cmd? Windows

RExcel in R 3.0.x

RAndFriends, which includes all the items needed to run RExcel, includes just R 2.15.2.
I am currently using the latest version of R but rcom 2.3.1 and rscproxy 2.0.5, which I am currently using, do not allow me to start an R server within Excel.
Setting foreground R server whithin Excel returns a fatal error and R rejects any connection with Excel via rcom.
I get two error messages:
R Server not available
There seems to be no R process connected to Excel
The main difference with a running RExcel session is that in the latter you may see rscproxy and rcom to be loaded when you start a RExcel session.
Is there anyone who is currently using RExcel with R 3.0.1 who can explain me how he succeeded in running it (step by step)?
Found it on statconn's Wiki section.
Assuming you have a suitable version of R installed, the following steps are necessary to install RExcel and the infrastructure. You need to be logged into Windows with administrator privileges to do this!
You also need to follow these instructions if you upgrade R, i.e. you install a new release of R after you have installed RExcel.
Download the statconn DCOM server and execute the program you downloaded.
Start R as administrator (on Windows 7 you need to right-click the R icon and click the corresponding item).
In R, run the following commands (you must start R as administrator to do this).
Commands:
install.packages(c("rscproxy", "rcom"), repos = "http://rcom.univie.ac.at/download", lib = .Library)
library(rcom)
comRegisterRegistry()
Now you have rcom installed, but RExcel is not installed yet.
To install RExcel: download the RExcel installer and run this installation program. Installing RExcel this way will set the background server of R as the default R server for RExcel. You can change this in the configuration settings in R. If you want to set the foreground server as the default site wide server, there is an appropriate option in one of the dialogs of the installation.
The RExcel installer modifies one of the configuration files of R, the file Rprofile.site, usually found at a location like C:\Program Files\R\R-2.13.1\etc\Rprofile.site.
If you do not install RExcel and want the package rcom to be loaded into R each time you start it, you have to add the line
library(rcom)
to Rprofile.site. You have to start your editor as administrator to be able to modify this file.
I thint that focus of those instuctions are on "Assuming you have a suitable version of R installed". R 3.0.1 do not work with RExcel.
I have noticed all development of Rmetrics products have ceased development since Diethelm Wuertz untimely passing, some of his associates on the team maintain it, but further development stopped abruptly after Diethelm Wuertz the project leader and main inspiration behind the team, died in a car accident in 2015, that is how long it has been since any serious development has occurred on Rexcel and all the range of Rmetric products, it is a real tragedy they are still cutting edge 6 years after Diethelm's passing, he would be sad to see his legacy slowly die. I am looking at xlwings and converting not too difficult code to python for speed and power, as far as many great R libraries go, I have not the time to reinvent the wheel within python, it is not a labour of love for me.

Resources