Closed achamess closed 5 years ago
Please make sure you install colorspace as described in the README: https://github.com/clauswilke/colorblindr/blob/master/README.md
Hi. Thanks for the reply. I looked again at the README. This is how I did it, but to make sure, I just now removed the old instances of cowplot
and colorspace
from R and did a fresh install according to the README.
I did it just like this:
devtools::install_github("wilkelab/cowplot")
install.packages("colorspace", repos = "http://R-Forge.R-project.org")
Then install colorblindr:
devtools::install_github("clauswilke/colorblindr")
I still get this message:
✔ checking for file ‘/private/var/folders/gx/mfdx8g856wvdtp0dw7k8h2s80000gn/T/RtmppTK84T/remotes11c7054eff5b7/clauswilke-colorblindr-1ac3d4d/DESCRIPTION’ ...
─ preparing ‘colorblindr’:
✔ checking DESCRIPTION meta-information ...
─ checking for LF line-endings in source and make files and shell scripts
─ checking for empty or unneeded directories
─ building ‘colorblindr_0.1.0.tar.gz’
* installing *source* package ‘colorblindr’ ...
** R
** inst
** byte-compile and prepare package for lazy loading
Error : object ‘desaturate’ is not exported by 'namespace:colorspace'
ERROR: lazy loading failed for package ‘colorblindr’
* removing ‘/Library/Frameworks/R.framework/Versions/3.5/Resources/library/colorblindr’
Error in i.p(...) :
(converted from warning) installation of package ‘/var/folders/gx/mfdx8g856wvdtp0dw7k8h2s80000gn/T//RtmppTK84T/file11c703e7d162c/colorblindr_0.1.0.tar.gz’ had non-zero exit status
The error message suggests you have an outdated version of colorspace. Could you paste the output of the following:
library(colorspace)
sessionInfo()
> library(colorspace)
> sessionInfo()
R version 3.5.0 (2018-04-23)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS High Sierra 10.13.3
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
locale:
[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
other attached packages:
[1] colorspace_1.4-0
loaded via a namespace (and not attached):
[1] compiler_3.5.0 magrittr_1.5 htmltools_0.3.6 tools_3.5.0 yaml_2.1.19 Rcpp_1.0.0
[7] stringi_1.2.4 rmarkdown_1.10.8 knitr_1.20 htmldeps_0.1.1 digest_0.6.18 stringr_1.3.1
[13] evaluate_0.11
Not sure what's happening. It looks like you have the right version (1.4-0), but then you seem to be missing functions that should exist in that version. Maybe contact Achim Zeileis? See here: http://colorspace.r-forge.r-project.org/contact.html
Thanks. Will do. In the meantime, is there somewhere I can find the colors for the palette_OkabeIto? That's really all I need. Or can I only get those colors if I use colorspace/colorblindr?
#' Color palette proposed by Okabe and Ito
#'
#' Two color palettes taken from the article "Color Universal Design" by Okabe and Ito, http://jfly.iam.u-tokyo.ac.jp/color/.
#' The variant `palette_OkabeIto` contains a gray color, while `palette_OkabeIto_black` contains black instead.
#' @export
palette_OkabeIto <- c("#E69F00", "#56B4E9", "#009E73", "#F0E442", "#0072B2", "#D55E00", "#CC79A7", "#999999")
#' @rdname palette_OkabeIto
#' @export
palette_OkabeIto_black <- c("#E69F00", "#56B4E9", "#009E73", "#F0E442", "#0072B2", "#D55E00", "#CC79A7", "#000000")
I just contacted Achim Zeileis. The colorspace package on R forge is indeed currently broken and he'll see if he can fix it. I'll close this issue because the problem lies with the colorspace package.
Thanks. I’m glad the issue is not just particular to me. Thanks for helping me out.
From: Claus Wilke notifications@github.com Reply-To: clauswilke/colorblindr reply@reply.github.com Date: Wednesday, November 28, 2018 at 5:10 PM To: clauswilke/colorblindr colorblindr@noreply.github.com Cc: Alexander Chamessian alexander.chamessian@duke.edu, Author author@noreply.github.com Subject: Re: [clauswilke/colorblindr] Error in installing - cannot find desaturate from colorspace (#11)
I just contacted Achim Zeileis. The colorspace package on R forge is indeed currently broken and he'll see if he can fix it. I'll close this issue because the problem lies with the colorspace package.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_clauswilke_colorblindr_issues_11-23issuecomment-2D442624323&d=DwMCaQ&c=imBPVzF25OnBgGmVOlcsiEgHoG1i6YHLR0Sj_gZ4adc&r=j_eoU9TVYa9LTnnoTWWpgQ&m=Om3YOJS0iAsEHn1H3bhqiLQVvdlIe2My3r4yfILTUWE&s=HJjDsPe4Ka1fQ5spIyELORae_NivwMUGlqj5r1zy4KM&e=, or mute the threadhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AHGbcpv6G9AnvlJm20nJiEMhI19hOBRoks5uzwnogaJpZM4Y2bXw&d=DwMCaQ&c=imBPVzF25OnBgGmVOlcsiEgHoG1i6YHLR0Sj_gZ4adc&r=j_eoU9TVYa9LTnnoTWWpgQ&m=Om3YOJS0iAsEHn1H3bhqiLQVvdlIe2My3r4yfILTUWE&s=TZIeLv-87aDfRwgXWFlfo6PSPnBlvfoWqahTP179eQg&e=.
just wanted to follow up. it works now that colorspace has been updated on the R source forge page. Thanks!
Hi. I previously had colorblindr working on my R studio setup, but not longer. So I reinstalled. This is what I'm getting.
I downloaded a fresh
cowplot
andcolorspace
. I have R 3.5 on Mac OS and R Studio Version 1.1.463 on MacOS 13.3