Unable to install mxnet for R 3.5

Any help with the following error while installing R mxnet for macos. I followed the following steps.

cran <- getOption(“repos”)
cran[“dmlc”] <- “https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/R/CRAN/
options(repos = cran)
install.packages(“mxnet”, dependencies=T)

I also installed openblas and opencv via homebrew and symlinked the blas dylib to the right version as recommended in other places. I still get the following error

[1] “Loading local: inst/libs/libmxnet.so”
Error: package or namespace load failed for ‘mxnet’:
.onLoad failed in loadNamespace() for ‘mxnet’, details:
call: dyn.load(“R-package/inst/libs/libmxnet.so”, local = FALSE)
error: unable to load shared object ‘/Users/username/R-package/inst/libs/libmxnet.so’:
dlopen(/Users/username/R-package/inst/libs/libmxnet.so, 10): image not found
In addition: Warning message:
package ‘mxnet’ was built under R version 3.5.2

It is odd that the `dlopen’ call looks for the .so file in a path relative to the working directory.

R version 3.5.1 (2018-07-02)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS High Sierra 10.13.6
Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libRlapack.dylib
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] Rcpp_1.0.0 plyr_1.8.4 pillar_1.3.1 compiler_3.5.1 RColorBrewer_1.1-2 influenceR_0.1.0
[7] viridis_0.5.1 tools_3.5.1 digest_0.6.18 jsonlite_1.6 viridisLite_0.3.0 tibble_2.0.1
[13] gtable_0.2.0 rgexf_0.15.3 pkgconfig_2.0.2 rlang_0.3.1 igraph_1.2.4 rstudioapi_0.9.0
[19] yaml_2.2.0 gridExtra_2.3 downloader_0.4 DiagrammeR_1.0.1 dplyr_0.8.0.1 stringr_1.4.0
[25] htmlwidgets_1.3 hms_0.4.2 grid_3.5.1 tidyselect_0.2.5 glue_1.3.0 R6_2.4.0
[31] Rook_1.1-1 XML_3.98-1.19 readr_1.3.1 purrr_0.3.2 tidyr_0.8.3 ggplot2_3.1.0
[37] magrittr_1.5 scales_1.0.0 htmltools_0.3.6 assertthat_0.2.0 colorspace_1.4-0 brew_1.0-6
[43] stringi_1.3.1 visNetwork_2.0.6 lazyeval_0.2.1 munsell_0.5.0 crayon_1.3.4