Giter Club home page Giter Club logo

Comments (2)

cderv avatar cderv commented on June 12, 2024

Yes I agree that it could be painful to put the L. as.integer could be a solution.
Where is the error coming from? Which check causes this ?

You can open a PR to discuss the fix. Your suggestion seems ok.

from crrri.

cderv avatar cderv commented on June 12, 2024

Ok this is what is happening

> cr <- Chrome$new(debug_port = 9234)
Error: is_scalar_integer(x = debug_port) is not TRUE
Call `rlang::last_error()` to see a backtrace

I think we don't use as.integer because it does seems strange that 1.5 cast to 1.

and vctrs is safer than R base on this

vctrs::vec_cast(1.5, integer())
#> Lossy cast from `x` <double> to `to` <integer>.
#> Locations: 1
vctrs::allow_lossy_cast(vctrs::vec_cast(1.5, integer()))
#> [1] 1

Created on 2019-10-04 by the reprex package (v0.3.0)

from crrri.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.