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

Commit

Permalink
[R] use AWS S3 to host all pre-built binary packages. close #6543 (#6722
Browse files Browse the repository at this point in the history
)
  • Loading branch information
thirdwing authored and piiswrong committed Jun 28, 2017
1 parent 49018a2 commit 09e08f5
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 17 deletions.
9 changes: 5 additions & 4 deletions R-package/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@ Resources
Installation
------------

For Windows/Mac users, we provide a pre-built binary package using CPU.
You can install a weekly updated package directly from the R console:
We provide pre-built binary packages for Windows/OSX users.
You can install the CPU package directly from the R console:

```r
install.packages("drat", repos="https://cran.rstudio.com")
drat:::addRepo("dmlc")
cran <- getOption("repos")
cran["dmlc"] <- "https://s3-us-west-2.amazonaws.com/apache-mxnet/R/CRAN/"
options(repos = cran)
install.packages("mxnet")
```

Expand Down
27 changes: 20 additions & 7 deletions docs/get_started/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -712,8 +712,9 @@ You could also run distributed deeplearning with *MXNet* on AWS using [Cloudform
The CPU version of MXNet R package can be installed in R like other packages

```r
install.packages("drat")
drat::addRepo("dmlc")
cran <- getOption("repos")
cran["dmlc"] <- "https://s3-us-west-2.amazonaws.com/apache-mxnet/R/CRAN/"
options(repos = cran)
install.packages("mxnet")
```

Expand Down Expand Up @@ -876,23 +877,35 @@ The CPU version of MXNet R package can be installed in R like other packages


```r
install.packages("drat")
drat::addRepo("dmlc")
cran <- getOption("repos")
cran["dmlc"] <- "https://s3-us-west-2.amazonaws.com/apache-mxnet/R/CRAN/"
options(repos = cran)
install.packages("mxnet")
```


</div>

<!-- END - Windows R CPU Installation Instructions -->

<div class="gpu">

You can also follow the installation instructions [in this guide](./windows_setup.md) to build MXNet from source.
The GPU version of MXNet R package can be installed in R like other packages


```r
cran <- getOption("repos")
cran["dmlc"] <- "https://s3-us-west-2.amazonaws.com/apache-mxnet/R/CRAN/GPU"
options(repos = cran)
install.packages("mxnet")
```

Alternatively, You can also follow the installation instructions [in this guide](./windows_setup.md) to build MXNet from source.

</div>
</div>
</div>

<!-- END - Windows R CPU Installation Instructions -->
<!-- END - Windows R GPU Installation Instructions -->

<div class="linux">
<div class="scala julia perl">
Expand Down
7 changes: 4 additions & 3 deletions docs/get_started/osx_setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,10 @@ You have 2 options:
For OS X (Mac) users, MXNet provides a prebuilt binary package for CPUs. The prebuilt package is updated weekly. You can install the package directly in the R console using the following commands:

```r
install.packages("drat", repos="https://cran.rstudio.com")
drat:::addRepo("dmlc")
install.packages("mxnet")
cran <- getOption("repos")
cran["dmlc"] <- "https://s3-us-west-2.amazonaws.com/apache-mxnet/R/CRAN/"
options(repos = cran)
install.packages("mxnet")
```

### Building MXNet from Source Code
Expand Down
19 changes: 16 additions & 3 deletions docs/get_started/windows_setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,24 @@ To install MXNet on a computer with a CPU processor, choose from two options:
* Build the library from source code

#### Building MXNet with the Prebuilt Binary Package
For Windows users, MXNet provides a prebuilt binary package for CPUs. The prebuilt package is updated weekly. You can install the package directly in the R console using the following commands:
For Windows users, MXNet provides prebuilt binary packages.
You can install the package directly in the R console.

For CPU-only package:

```r
cran <- getOption("repos")
cran["dmlc"] <- "https://s3-us-west-2.amazonaws.com/apache-mxnet/R/CRAN/"
options(repos = cran)
install.packages("mxnet")
```

For GPU-enabled package:

```r
install.packages("drat", repos="https://cran.rstudio.com")
drat:::addRepo("dmlc")
cran <- getOption("repos")
cran["dmlc"] <- "https://s3-us-west-2.amazonaws.com/apache-mxnet/R/CRAN/GPU"
options(repos = cran)
install.packages("mxnet")
```

Expand Down

0 comments on commit 09e08f5

Please sign in to comment.