PageRenderTime 1285ms CodeModel.GetById 1270ms RepoModel.GetById 1ms app.codeStats 0ms

/README.md

http://github.com/rajarshi/cdkr
Markdown | 94 lines | 71 code | 23 blank | 0 comment | 0 complexity | 2ecc4fc42a1ff3c460deff043611294b MD5 | raw file
  1. <!-- README.md is generated from README.Rmd. Please edit that file -->
  2. [![Build
  3. Status](https://api.travis-ci.org/CDK-R/cdkr.svg?branch=master)](https://travis-ci.org/CDK-R/cdkr)
  4. [![CRAN
  5. Version](https://www.r-pkg.org/badges/version/rcdk?color=green)](https://cran.r-project.org/package=rcdk)
  6. [![CRAN
  7. Downloads](http://cranlogs.r-pkg.org/badges/grand-total/rcdk?color=green)](https://cran.r-project.org/package=rcdk)
  8. [![CRAN Downloads
  9. Monthyl](http://cranlogs.r-pkg.org/badges/last-month/rcdk?color=green)](https://cran.r-project.org/package=rcdk)
  10. # rcdk: a chemistry library
  11. The goal of cdkr is to provide easy access to
  12. [CDK](https://github.com/cdk/cdk) chemoinformatics library to combine
  13. the simplicity and power of R with CDKs powerful, tested API.
  14. # Installation
  15. rCDK package releases are available on CRAN or on Github via Devtools:
  16. ``` r
  17. # releases
  18. install.packages("rcdk")
  19. # development releases of `cdkr` are also available on github uinsg devtools:
  20. library(devtools)
  21. install_github("https://github.com/CDK-R/rcdklibs")
  22. install_github("https://github.com/CDK-R/cdkr", subdir="rcdk")
  23. ```
  24. ## Building and Development
  25. Information on building and devloping the CDKR package is available in
  26. teh Otherwise if you prefer the command line
  27. ```
  28. cd /tmp/
  29. git clone git@github.com:CDK-R/rcdklibs.git
  30. R CMD INSTALL rcdklibs
  31. git clone git@github.com:CDK-R/cdkr.git
  32. cd cdkr/rcdkjar
  33. ant clean jar
  34. cd ../
  35. R CMD INSTALL rcdk
  36. ```
  37. Before performing the install, you should have the following
  38. dependencies installed:
  39. - rJava
  40. - fingerprint
  41. - png
  42. - RUnit
  43. - Java JDK \>= 1.8
  44. For the png package, I have tested
  45. [png-0.1-7](http://www.rforge.net/png/files/)
  46. Some users have reported that `rcdk` methods (such as `parse.smiles`)
  47. are returning errors related to class not found or class version
  48. mismatch. This can happen when you are using a prepackaged version of
  49. `rJava` from [CRAN](https://cran.r-project.org/) and is caused by that
  50. package not finding the correct JRE home if you have multiple Java
  51. versions installed. In such a case, reinstalling `rJava` from sources
  52. appears to resolve this issue. See this
  53. [discussion](http://stackoverflow.com/questions/26948777/how-can-i-make-rjava-use-the-newer-version-of-java-on-osx).
  54. ### Installing Java
  55. rCDK uses the CDK library that requires the Java JDK \>= 1.8. In order
  56. to install rCDK, this requirement must be satisfied. You can check your
  57. java version on the command line as follows:
  58. > java -version
  59. > java version "1.8.0"
  60. If your version is not 1.8 you may need to download and install a more
  61. recent installation of JAVA. If you have multiple versions of JAVA you
  62. may be using an older version. On Mac OSX, for example, the latest OS
  63. installs JAVA 1.6 and you will need to reconfigure your JAVA install.
  64. You can try the following:
  65. # set the java version
  66. R CMD javareconf # or ....
  67. sudo R CMD javareconf
  68. # re install fromfrom R
  69. install.packages('rJava', type="source")
  70. Further informaiton about Rs use of Java can be [found
  71. here](https://cran.r-project.org/doc/manuals/r-release/R-admin.html#Java-support).