Giter Site home page Giter Site logo

Comments (9)

earino avatar earino commented on July 18, 2024 1

@michaelquinn32 should we be more explicit about the required version of rstudioapi?

from skimr.

elinw avatar elinw commented on July 18, 2024 1

@earino @michaelquinn32 @haozhu233 Isn't it more the version of RStudio? It seems like if you are using the dev version of RStudio you need the dev version of rstudioapi.

from skimr.

haozhu233 avatar haozhu233 commented on July 18, 2024

Can you try update your rstudioapi package?

from skimr.

kporkka avatar kporkka commented on July 18, 2024

Thanks for the comment. Unfortunately, no effect of updating the rstudioapi, same error message

from skimr.

kporkka avatar kporkka commented on July 18, 2024

Some dependencies missing from my R setup? Could you list them?

from skimr.

njtierney avatar njtierney commented on July 18, 2024

Hey team!

I'm really keen to use this in a conference talk I am giving tomorrow, unfortunately I get an error when I run it interactively in RStudio...

HOWEVER!

When I run reprex on it, I get this:

skimr::skim(iris)
#> Numeric Variables
#> # A tibble: 4 x 13
#>            var    type missing complete     n     mean        sd   min
#>          <chr>   <chr>   <dbl>    <dbl> <dbl>    <dbl>     <dbl> <dbl>
#> 1 Petal.Length numeric       0      150   150 3.758000 1.7652982   1.0
#> 2  Petal.Width numeric       0      150   150 1.199333 0.7622377   0.1
#> 3 Sepal.Length numeric       0      150   150 5.843333 0.8280661   4.3
#> 4  Sepal.Width numeric       0      150   150 3.057333 0.4358663   2.0
#> # ... with 5 more variables: `25% quantile` <dbl>, median <dbl>, `75%
#> #   quantile` <dbl>, max <dbl>, hist <chr>
#> 
#> Factor Variables
#> # A tibble: 1 x 7
#>       var   type complete missing     n n_unique
#>     <chr>  <chr>    <dbl>   <dbl> <dbl>    <dbl>
#> 1 Species factor      150       0   150        3
#> # ... with 1 more variables: stat <chr>
Session info
devtools::session_info()
#> Session info -------------------------------------------------------------
#>  setting  value                       
#>  version  R version 3.4.0 (2017-04-21)
#>  system   x86_64, darwin15.6.0        
#>  ui       X11                         
#>  language (EN)                        
#>  collate  en_AU.UTF-8                 
#>  tz       Australia/Melbourne         
#>  date     2017-06-01
#> Packages -----------------------------------------------------------------
#>  package    * version    date       source                             
#>  assertthat   0.2.0      2017-04-11 CRAN (R 3.4.0)                     
#>  backports    1.1.0      2017-05-22 cran (@1.1.0)                      
#>  base       * 3.4.0      2017-04-21 local                              
#>  colformat    0.0.0.9000 2017-05-31 Github (hadley/colformat@fa9b098)  
#>  compiler     3.4.0      2017-04-21 local                              
#>  crayon       1.3.2.9000 2017-05-31 Github (gaborcsardi/crayon@0a0129e)
#>  datasets   * 3.4.0      2017-04-21 local                              
#>  DBI          0.6-1      2017-04-01 CRAN (R 3.4.0)                     
#>  devtools     1.13.1     2017-05-13 CRAN (R 3.4.0)                     
#>  digest       0.6.12     2017-01-27 CRAN (R 3.4.0)                     
#>  dplyr        0.5.0      2016-06-24 CRAN (R 3.4.0)                     
#>  evaluate     0.10       2016-10-11 CRAN (R 3.4.0)                     
#>  formatR      1.5        2017-04-25 CRAN (R 3.4.0)                     
#>  graphics   * 3.4.0      2017-04-21 local                              
#>  grDevices  * 3.4.0      2017-04-21 local                              
#>  htmltools    0.3.6      2017-04-28 cran (@0.3.6)                      
#>  knitr        1.16       2017-05-18 cran (@1.16)                       
#>  lazyeval     0.2.0      2016-06-12 CRAN (R 3.4.0)                     
#>  magrittr     1.5        2014-11-22 CRAN (R 3.4.0)                     
#>  memoise      1.1.0      2017-05-12 Github (hadley/memoise@e372cde)    
#>  methods    * 3.4.0      2017-04-21 local                              
#>  purrr        0.2.2.2    2017-05-11 cran (@0.2.2.2)                    
#>  R6           2.2.1      2017-05-10 cran (@2.2.1)                      
#>  Rcpp         0.12.11    2017-05-22 cran (@0.12.11)                    
#>  rlang        0.1.1      2017-05-18 CRAN (R 3.4.0)                     
#>  rmarkdown    1.5.9000   2017-05-29 Github (rstudio/rmarkdown@1ba5b8f) 
#>  rprojroot    1.2        2017-01-16 CRAN (R 3.4.0)                     
#>  rstudioapi   0.6        2016-06-27 CRAN (R 3.4.0)                     
#>  skimr        1.0        2017-05-31 Github (ropenscilabs/skimr@766cab0)
#>  stats      * 3.4.0      2017-04-21 local                              
#>  stringi      1.1.5      2017-04-07 CRAN (R 3.4.0)                     
#>  stringr      1.2.0      2017-02-18 CRAN (R 3.4.0)                     
#>  tibble       1.3.3      2017-05-28 cran (@1.3.3)                      
#>  tidyr        0.6.3      2017-05-15 cran (@0.6.3)                      
#>  tools        3.4.0      2017-04-21 local                              
#>  utils      * 3.4.0      2017-04-21 local                              
#>  withr        1.0.2      2016-06-20 CRAN (R 3.4.0)                     
#>  yaml         2.1.14     2016-11-12 cran (@2.1.14)

I am currently running a dev version of RStudio, perhaps this is causing the problem, but I just thought I should document this in case anyone else has the same problem.

from skimr.

njtierney avatar njtierney commented on July 18, 2024

OK, update - I installed the latest version of rstudioapi from rstudio/rstudioapi - this works now! 🎉

skimr::skim(airquality)
#> Numeric Variables
#> # A tibble: 6 x 13
#>       var    type missing complete     n       mean        sd   min
#>     <chr>   <chr>   <dbl>    <dbl> <dbl>      <dbl>     <dbl> <dbl>
#> 1     Day integer       0      153   153  15.803922  8.864520   1.0
#> 2   Month integer       0      153   153   6.993464  1.416522   5.0
#> 3   Ozone integer      37      116   153  42.129310 32.987885   1.0
#> 4 Solar.R integer       7      146   153 185.931507 90.058422   7.0
#> 5    Temp integer       0      153   153  77.882353  9.465270  56.0
#> 6    Wind numeric       0      153   153   9.957516  3.523001   1.7
#> # ... with 5 more variables: `25% quantile` <dbl>, median <dbl>, `75%
#> #   quantile` <dbl>, max <dbl>, hist <chr>

from skimr.

kporkka avatar kporkka commented on July 18, 2024

Thanks @njtierney, installing the latest dev version of rstudioapi solved the issue for me as well. Nice little thing.

from skimr.

elinw avatar elinw commented on July 18, 2024

Closing since it is resolved, but the last question needs to be considered.

from skimr.

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.