microsoft-r

How to use rxExec to run standard R remote?

怎甘沉沦 提交于 2019-12-02 11:17:43
问题 I'm trying to call the Standard R code via the function "rxExec" to execute the code remote. My compute context is RxInSqlServer() and the connection to the server is fine. Is this call possible in general? Or is there a better way to perform Standard R remote via SQL R Server Services? function1 <- function(varIn,varOut) { df<- rxImport(varIn) df<- ... [STANDARD R CODE] rxDataStep(inData = df, outFile = varOut numRows=1000) } rxSetComputeContext(cc) sql <- "SELECT * FROM ..." dbIn <-

Installing packages on Microsoft R Open fails

别等时光非礼了梦想. 提交于 2019-12-01 22:25:51
I've never had any issues installing packages on R, but I always have issues installing packages on Microsoft R Open. For example, I attempted to install tidyverse. I received many errors, listed below: > Warning in system(cmd) : error in running command ERROR: compilation > failed for package ‘colorspace’ > * removing ‘/home/myFilePath/R/x86_64-pc-linux-gnu-library/3.5/colorspace’ > Warning in install.packages : installation of package ‘colorspace’ > had non-zero exit status > * installing *source* package ‘mnormt’ ... > ** package ‘mnormt’ successfully unpacked and MD5 sums checked > ** libs

How do I get rmarkdown 1.2 with Microsoft R Open 3.3.2

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-28 08:49:51
I am using RStudio 1.0.136 with Microsoft R Open 3.3.2 When I do File --> New File --> R Markdown... it says rmarkdown 1.2 is required but 1.1 is available And Check that getOption("repos") refers to a CRAN repository that contains the needed package versions And getOption("repos") gives me this: CRAN "https://mran.revolutionanalytics.com/snapshot/2016-11-01" CRANextra "http://www.stats.ox.ac.uk/pub/RWin" Where do I go from here? One of the things we do with MRO (and other MS R distributions) is to point the default repository to a static point-in-time snapshot, for the purposes of

R: [unixODBC][Driver Manager]Can't open lib 'SQL Server' : file not found

元气小坏坏 提交于 2019-11-28 03:24:04
问题 setwd("/mnt/mountpoint/abc/") sqlServerConnString <- "SERVER=server;DATABASE=sqldwdb;UID=xyz;PWD=abc;" sqlServerDataDS <- RxSqlServerData(sqlQuery = "SELECT * FROM xyz", connectionString = sqlServerConnString) sqlServerDataDF <- rxImport(sqlServerDataDS) This is my code. I am getting the followin error in R [unixODBC][Driver Manager]Can't open lib 'SQL Server' : file not found [unixODBC][Driver Manager]Connnection does not exist ODBC Error in SQLDisconnect Could not open data source.Error in

How do I get rmarkdown 1.2 with Microsoft R Open 3.3.2

好久不见. 提交于 2019-11-27 02:33:36
问题 I am using RStudio 1.0.136 with Microsoft R Open 3.3.2 When I do File --> New File --> R Markdown... it says rmarkdown 1.2 is required but 1.1 is available And Check that getOption("repos") refers to a CRAN repository that contains the needed package versions And getOption("repos") gives me this: CRAN "https://mran.revolutionanalytics.com/snapshot/2016-11-01" CRANextra "http://www.stats.ox.ac.uk/pub/RWin" Where do I go from here? 回答1: One of the things we do with MRO (and other MS R