Skip to content

#error: cli functions are not working #138

@nfancy

Description

@nfancy

Hi,

I have used cli before and recently have updated the package and it is not working. So, I removed the package completely, installed a fresh version from github but it is still not working. Here are the codes I used:

> packageVersion("cli")
Error in packageVersion("cli") : there is no package called ‘cli’

> devtools::install_github("r-lib/cli")
Downloading GitHub repo r-lib/cli@master
✓  checking for file ‘/tmp/Rtmpg9eaf7/remotes3c521451bd6c/r-lib-cli-e9f041e/DESCRIPTION’ ...
─  preparing ‘cli’:
✓  checking DESCRIPTION meta-information ...
─  checking for LF line-endings in source and make files and shell scripts
─  checking for empty or unneeded directories
─  looking to see if a ‘data/datalist’ file should be added
─  building ‘cli_2.0.1.9000.tar.gz’
   Warning: invalid uid value replaced by that for user 'nobody'
   
Installing package into ‘/home/nfancy/R/x86_64-pc-linux-gnu-library/3.6’
(as ‘lib’ is unspecified)
* installing *source* package ‘cli’ ...
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
*** copying figures
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (cli)

> library(cli)

> cli_text("Hello world!")
Error in if (dark) { : missing value where TRUE/FALSE needed

Any suggestions/help is appreciated.

BW
Nurun

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions