Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

[MXNET-627] Fix Installation instructions for R bindings on Linux systems. #11590

Merged
merged 14 commits into from
Jul 12, 2018
1 change: 0 additions & 1 deletion docs/install/build_from_source.md
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,6 @@ Next, build and install the MXNet R package:
```bash
cd ..
make rpkg
R CMD INSTALL mxnet_current_r.tar.gz
```

## Build the Scala package
Expand Down
15 changes: 14 additions & 1 deletion docs/install/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -987,10 +987,23 @@ $ make -j $(nproc) USE_OPENCV=1 USE_BLAS=openblas

**Build and install the MXNet R binding**

You will need to first install R. MXNet requires R version >3.3 and we can fetch that from CRAN package repository.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add similar instructions for windows and os x users.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for macOS and windows we do not build from source, this will not be there. There is only the issue of ensuring that the pre-built binary in the S3 works fine with both R 3.4 and 3.5.
And that is not part of this PR.

```bash
$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
$ sudo add-apt-repository 'deb [arch=amd64,i386] https://cran.rstudio.com/bin/linux/ubuntu xenial/'
$ sudo apt-get update
$ sudo apt-get install r-base r-base-dev
```

You will then need to install packages needed for building and installing MXNet R bindings which includes curl, openssl, XML, Cairo and devtools. You can install them with the following commands.
```bash
$ sudo apt-get install libcurl4-openssl-dev libssl-dev libxml2-dev libcairo2-dev libxt-dev
$ sudo Rscript -e "install.packages('devtools', repo = 'https://cran.rstudio.com')"
```

You can then build and install the MXNet R package with the following command.
```bash
$ make rpkg
$ R CMD INSTALL mxnet_current_r.tar.gz
```

</div> <!-- END of CPU -->
Expand Down
8 changes: 0 additions & 8 deletions docs/install/osx_setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,14 +137,6 @@ Run the following commands to install the MXNet dependencies and build the MXNet
make rpkg
```

**Note:** R-package is a folder in the MXNet source.

These commands create the MXNet R package as a tar.gz file that you can install as an R package. To install the R package, run the following command, use your MXNet version number:

```bash
R CMD INSTALL mxnet_current_r.tar.gz
```

## Install the MXNet Package for Julia
The MXNet package for Julia is hosted in a separate repository, MXNet.jl, which is available on [GitHub](https://github.com/dmlc/MXNet.jl). To use Julia binding it with an existing libmxnet installation, set the ```MXNET_HOME``` environment variable by running the following command:

Expand Down
7 changes: 0 additions & 7 deletions docs/install/ubuntu_setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -231,13 +231,6 @@ Run the following commands to install the MXNet dependencies and build the MXNet
make rpkg
```

**Note:** R-package is a folder in the MXNet source.

These commands create the MXNet R package as a tar.gz file that you can install as an R package. To install the R package, run the following command, use your MXNet version number:

```bash
R CMD INSTALL mxnet_current_r.tar.gz
```
<hr>


Expand Down
8 changes: 0 additions & 8 deletions docs/install/windows_setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,14 +138,6 @@ Run the following commands to install the MXNet dependencies and build the MXNet
make rpkg
```

**Note:** R-package is a folder in the MXNet source.

These commands create the MXNet R package as a tar.gz file that you can install as an R package. To install the R package, run the following command, use your MXNet version number:

```bash
R CMD INSTALL mxnet_current_r.tar.gz
```

### Installing MXNet on a Computer with a GPU Processor

To install MXNet R package on a computer with a GPU processor, you need the following:
Expand Down