knights-lab / BugBase

37 stars 11 forks source link

Install Error: there is no package called 'crayon' #10

Open mmelendrez opened 6 years ago

mmelendrez commented 6 years ago

Hello - I am attempting to install BugBase locally and ran into an install problem. At the end of the install it halted execution stating:

Error : .onLoad failed in loadNamespace() for 'pillar', details:
  call: loadNamespace(name)
  error: there is no package called ‘crayon’

  There is a binary version available but the source version is later:
        binary source needs_compilation
ggplot2  2.2.1  3.0.0             FALSE

installing the source package ‘ggplot2’

trying URL 'http://cran.r-project.org/src/contrib/ggplot2_3.0.0.tar.gz'
Content type 'application/x-gzip' length 2847050 bytes (2.7 MB)
==================================================
downloaded 2.7 MB

* installing *source* package ‘ggplot2’ ...
** package ‘ggplot2’ successfully unpacked and MD5 sums checked
** R
** data
*** moving datasets to lazyload DB
** inst
** preparing package for lazy loading
** help
*** installing help indices
*** copying figures
** building package indices
** installing vignettes
** testing if installed package can be loaded
* DONE (ggplot2)

The downloaded source packages are in
    ‘/private/var/folders/12/2j8hq03s52lbnstw5wh008k80000gq/T/RtmpMwS0Rt/downloaded_packages’
Error : .onLoad failed in loadNamespace() for 'pillar', details:
  call: loadNamespace(name)
  error: there is no package called ‘crayon’
Error: package or namespace load failed for ‘ggplot2’
Execution halted

Github says the full output is too long for inside this message so I have attached it. BugBase_install.txt I ran the command again this morning

to verify the error:

wsb255bioimac27:~ mel_local$ run.bugbase.r -h
Error : .onLoad failed in loadNamespace() for 'pillar', details:
  call: loadNamespace(name)
  error: there is no package called ‘crayon’

  There is a binary version available but the source version is later:
        binary source needs_compilation
ggplot2  2.2.1  3.0.0             FALSE

installing the source package ‘ggplot2’

trying URL 'http://cran.r-project.org/src/contrib/ggplot2_3.0.0.tar.gz'
Content type 'application/x-gzip' length 2847050 bytes (2.7 MB)
==================================================
downloaded 2.7 MB

* installing *source* package ‘ggplot2’ ...
** package ‘ggplot2’ successfully unpacked and MD5 sums checked
** R
** data
*** moving datasets to lazyload DB
** inst
** preparing package for lazy loading
** help
*** installing help indices
*** copying figures
** building package indices
** installing vignettes
** testing if installed package can be loaded
* DONE (ggplot2)

The downloaded source packages are in
    ‘/private/var/folders/12/2j8hq03s52lbnstw5wh008k80000gq/T/RtmpMwS0Rt/downloaded_packages’
Error : .onLoad failed in loadNamespace() for 'pillar', details:
  call: loadNamespace(name)
  error: there is no package called ‘crayon’
Error: package or namespace load failed for ‘ggplot2’
Execution halted

Please advise...thank you!

BayueAugust commented 5 years ago

I had the same problem as yours and I figured out that the error is that there is a mistake in loading package "biom" and "biom" only can be used under R 3.4.0 or higher. So I upgraded my R and rerun the script, all went well.

You can check your R version and try if R 3.4.0 or higher is working or not.

Best wishes.