From 4a082eafdfd134a2c60ae215095f43c83f931e08 Mon Sep 17 00:00:00 2001 From: Jonathan Zhu <3010705+JonathanZhu11@users.noreply.github.com> Date: Tue, 7 Apr 2020 11:34:37 -0700 Subject: [PATCH] Modify READMEs for R installation (#63) * Update repo from which RODBCext is found * Add tar.gz for linux * fix READMEs for RODBCext * remove titling * add extra space --- R/README.md | 9 ++++++++- README.md | 19 +++++++++++++++++-- 2 files changed, 25 insertions(+), 3 deletions(-) diff --git a/R/README.md b/R/README.md index 376201d..2bed262 100644 --- a/R/README.md +++ b/R/README.md @@ -4,9 +4,10 @@ sqlmlutils is an R package to help execute R code on a SQL database (SQL Server # Installation +### Windows From command prompt, run ``` -R.exe -e "install.packages('RODBCext', repos='https://cran.microsoft.com')" +R.exe -e "install.packages('RODBCext', repos='https://mran.microsoft.com/snapshot/2019-02-01/')" R.exe CMD INSTALL dist/sqlmlutils_0.7.1.zip ``` OR @@ -15,6 +16,12 @@ To build a new package file and install, run .\buildandinstall.cmd ``` +### Linux +``` +R.exe -e "install.packages('RODBCext', repos='https://mran.microsoft.com/snapshot/2019-02-01/')" +R.exe CMD INSTALL dist/sqlmlutils_0.7.1.tar.gz +``` + # Getting started Shown below are the important functions sqlmlutils provides: diff --git a/README.md b/README.md index 15efe3c..e067e24 100644 --- a/README.md +++ b/README.md @@ -23,9 +23,24 @@ pip install Python/dist/sqlmlutils-1.0.0.zip ``` R: + +Windows: + +From command prompt, run ``` -R -e "install.packages('RODBCext', repos='https://cran.microsoft.com')" -R CMD INSTALL R/dist/sqlmlutils_0.7.1.zip +R.exe -e "install.packages('RODBCext', repos='https://mran.microsoft.com/snapshot/2019-02-01/')" +R.exe CMD INSTALL dist/sqlmlutils_0.7.1.zip +``` +OR +To build a new package file and install, run +``` +.\buildandinstall.cmd +``` + +Linux +``` +R.exe -e "install.packages('RODBCext', repos='https://mran.microsoft.com/snapshot/2019-02-01/')" +R.exe CMD INSTALL dist/sqlmlutils_0.7.1.tar.gz ``` # Details