dplyr arrange function worked yesterday 28Feb2018 and does not this AM 01Mar2018....anything to do with the recent commit?

1,997 views
Skip to first unread message

ttu...@ativamed.com

unread,
Mar 1, 2018, 9:20:07 AM3/1/18
to manipulatr
The dplyr arrange function worked fine yesterday 28Feb2018 but does not work this AM 01Mar2018....anything to do with the recent commit?  Ensured dplyr is installed and loaded.  Tested using the .csv file found at:

https://raw.githubusercontent.com/genomicsclass/dagdata/master/inst/extdata/msleep_ggplot2.csv

library(dplyr)
library(magrittr)

msleep <- read.csv("msleep_ggplot2.csv")
head(msleep)

msleep %>% arrange(order) %>% head

Get this in the R console (using RStudio interface):

> msleep <- read.csv("msleep_ggplot2.csv")
> head(msleep)
                        name      genus  vore        order conservation sleep_total
1                    Cheetah   Acinonyx carni    Carnivora           lc        12.1
2                 Owl monkey      Aotus  omni     Primates         <NA>        17.0
3            Mountain beaver Aplodontia herbi     Rodentia           nt        14.4
4 Greater short-tailed shrew    Blarina  omni Soricomorpha           lc        14.9
5                        Cow        Bos herbi Artiodactyla domesticated         4.0
6           Three-toed sloth   Bradypus herbi       Pilosa         <NA>        14.4
  sleep_rem sleep_cycle awake brainwt  bodywt
1        NA          NA  11.9      NA  50.000
2       1.8          NA   7.0 0.01550   0.480
3       2.4          NA   9.6      NA   1.350
4       2.3   0.1333333   9.1 0.00029   0.019
5       0.7   0.6666667  20.0 0.42300 600.000
6       2.2   0.7666667   9.6      NA   3.850
> msleep %>% arrange(order) %>% head
Error in arrange(., order) : could not find function "arrange"

Brandon Hurr

unread,
Mar 1, 2018, 9:52:59 AM3/1/18
to ttu...@ativamed.com, manipulatr
Hello,

I just installed the newest version of dplyr and I'm not getting the error that you see. Can you post your session_info()?

> devtools::session_info()
Session info ----------------------------------------------------------------------------------------------------------------
 setting  value                      
 version  R version 3.4.3 (2017-11-30)
 system   x86_64, darwin15.6.0       
 ui       AQUA                       
 language (EN)                       
 collate  en_US.UTF-8                
 tz       America/Los_Angeles        
 date     2018-03-01                 

Packages --------------------------------------------------------------------------------------------------------------------
 package    * version    date       source                          
 assertthat   0.2.0      2017-04-11 cran (@0.2.0)                   
 bindr        0.1.0.9000 2018-03-01 Github (krlmlr/bindr@4b20179)   
 bindrcpp     0.2.0.9000 2018-03-01 Github (krlmlr/bindrcpp@7553d4f)
 curl         3.0        2017-10-06 cran (@3.0)                     
 devtools     1.12.0     2016-12-05 CRAN (R 3.4.0)                  
 digest       0.6.12     2017-01-27 CRAN (R 3.4.0)                  
 dplyr      * 0.7.4.9000 2018-03-01 Github (tidyverse/dplyr@27becad)
 git2r        0.18.0     2017-01-01 CRAN (R 3.4.0)                  
 glue         1.2.0      2017-10-29 cran (@1.2.0)                   
 httr         1.3.1      2017-08-20 cran (@1.3.1)                   
 knitr        1.17       2017-08-10 CRAN (R 3.4.1)                  
 magrittr     1.5        2014-11-22 cran (@1.5)                     
 memoise      1.1.0      2017-04-21 CRAN (R 3.4.0)                  
 pillar       1.2.1      2018-03-01 Github (r-lib/pillar@2065df9)   
 pkgconfig    2.0.1      2017-03-21 cran (@2.0.1)                   
 purrr        0.2.4.9000 2018-03-01 Github (tidyverse/purrr@84ce1ad)
 R6           2.2.2      2017-06-17 cran (@2.2.2)                   
 Rcpp         0.12.15    2018-01-20 cran (@0.12.15)                 
 rlang        0.2.0.9000 2018-03-01 Github (tidyverse/rlang@9ea33dd)
 tibble       1.4.2      2018-03-01 Github (tidyverse/tibble@80ac1a3)
 tidyselect   0.2.4      2018-02-26 cran (@0.2.4)                   
 withr        2.1.0.9000 2017-12-09 Github (jimhester/withr@fe81c00)
> msleep <- ggplot2::msleep
> head(msleepp)
Error in head(msleepp) : object 'msleepp' not found
> head(msleep)
# A tibble: 6 x 11
  name                       genus      vore  order    conservation sleep_total sleep_rem sleep_cycle awake  brainwt  bodywt
  <chr>                      <chr>      <chr> <chr>    <chr>              <dbl>     <dbl>       <dbl> <dbl>    <dbl>   <dbl>
1 Cheetah                    Acinonyx   carni Carnivo… lc                 12.1     NA          NA     11.9  NA       5.00e+1
2 Owl monkey                 Aotus      omni  Primates <NA>               17.0      1.80       NA      7.00  1.55e-2 4.80e-1
3 Mountain beaver            Aplodontia herbi Rodentia nt                 14.4      2.40       NA      9.60 NA       1.35e+0
4 Greater short-tailed shrew Blarina    omni  Soricom… lc                 14.9      2.30        0.133  9.10  2.90e-4 1.90e-2
5 Cow                        Bos        herbi Artioda… domesticated        4.00     0.700       0.667 20.0   4.23e-1 6.00e+2
6 Three-toed sloth           Bradypus   herbi Pilosa   <NA>               14.4      2.20        0.767  9.60 NA       3.85e+0

> msleep %>% arrange(order) %>% head
# A tibble: 6 x 11
  name     genus     vore  order        conservation sleep_total sleep_rem sleep_cycle awake  brainwt  bodywt
  <chr>    <chr>     <chr> <chr>        <chr>              <dbl>     <dbl>       <dbl> <dbl>    <dbl>   <dbl>
1 Tenrec   Tenrec    omni  Afrosoricida <NA>               15.6      2.30       NA      8.40  0.00260   0.900
2 Cow      Bos       herbi Artiodactyla domesticated        4.00     0.700       0.667 20.0   0.423   600.  
3 Roe deer Capreolus herbi Artiodactyla lc                  3.00    NA          NA     21.0   0.0982   14.8 
4 Goat     Capri     herbi Artiodactyla lc                  5.30     0.600      NA     18.7   0.115    33.5 
5 Giraffe  Giraffa   herbi Artiodactyla cd                  1.90     0.400      NA     22.1  NA       900.  
6 Sheep    Ovis      herbi Artiodactyla domesticated        3.80     0.600      NA     20.2   0.175    55.5 

>

--
You received this message because you are subscribed to the Google Groups "manipulatr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to manipulatr+unsubscribe@googlegroups.com.
To post to this group, send email to manip...@googlegroups.com.
Visit this group at https://groups.google.com/group/manipulatr.
For more options, visit https://groups.google.com/d/optout.

Thomas Turner

unread,
Mar 1, 2018, 10:00:26 AM3/1/18
to Brandon Hurr, manipulatr

Hello Brandon,

 

Thanks for the response…..I determined that the system was looking for a package called ‘pillar’…..once pillar was installed, a successful load of dplyr went through, and the arrange function works well again…..I really appreciate the follow through on this!

 

Best regards,

Tom Turner

 

 

Sent from Mail for Windows 10

--

To unsubscribe from this group and stop receiving emails from it, send an email to manipulatr+...@googlegroups.com.

ttu...@ativamed.com

unread,
Mar 1, 2018, 10:08:18 AM3/1/18
to manipulatr

Hello Brandon,

 

Thanks for the response…..I determined that the system was looking for a package called ‘pillar’…..once pillar was installed, a successful load of dplyr went through, and the arrange function works well again…..I really appreciate the follow through on this!

 

Best regards,

Tom Turner



jim holtman

unread,
Jun 17, 2018, 11:55:56 AM6/17/18
to ttu...@ativamed.com, manipulatr
It seems to work fine for me:

> library(dplyr)
> library(magrittr)
> head(msleep)
                        name      genus  vore        order conservation sleep_total sleep_rem sleep_cycle awake
1                    Cheetah   Acinonyx carni    Carnivora           lc        12.1        NA          NA  11.9
2                 Owl monkey      Aotus  omni     Primates         <NA>        17.0       1.8          NA   7.0
3            Mountain beaver Aplodontia herbi     Rodentia           nt        14.4       2.4          NA   9.6
4 Greater short-tailed shrew    Blarina  omni Soricomorpha           lc        14.9       2.3   0.1333333   9.1
5                        Cow        Bos herbi Artiodactyla domesticated         4.0       0.7   0.6666667  20.0
6           Three-toed sloth   Bradypus herbi       Pilosa         <NA>        14.4       2.2   0.7666667   9.6
  brainwt  bodywt
1      NA  50.000
2 0.01550   0.480
3      NA   1.350
4 0.00029   0.019
5 0.42300 600.000
6      NA   3.850
> msleep %>% arrange(order) %>% head
      name     genus  vore        order conservation sleep_total sleep_rem sleep_cycle awake brainwt  bodywt
1   Tenrec    Tenrec  omni Afrosoricida         <NA>        15.6       2.3          NA   8.4  0.0026   0.900
2      Cow       Bos herbi Artiodactyla domesticated         4.0       0.7   0.6666667  20.0  0.4230 600.000
3 Roe deer Capreolus herbi Artiodactyla           lc         3.0        NA          NA  21.0  0.0982  14.800
4     Goat     Capri herbi Artiodactyla           lc         5.3       0.6          NA  18.7  0.1150  33.500
5  Giraffe   Giraffa herbi Artiodactyla           cd         1.9       0.4          NA  22.1      NA 899.995
6    Sheep      Ovis herbi Artiodactyla domesticated         3.8       0.6          NA  20.2  0.1750  55.500


> sessionInfo()
R version 3.4.2 (2017-09-28)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1

Matrix products: default

locale:
[1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United States.1252   
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C                          
[5] LC_TIME=English_United States.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] bindrcpp_0.2.2 magrittr_1.5   dplyr_0.7.4   

loaded via a namespace (and not attached):
 [1] compiler_3.4.2   assertthat_0.2.0 R6_2.2.2         tools_3.4.2      pillar_1.2.1     glue_1.2.0      
 [7] tibble_1.4.2     yaml_2.1.18      Rcpp_0.12.16     pkgconfig_2.0.1  rlang_0.2.0      bindr_0.1.1     

Did you remember to reload your libraries on that run?  You need to include the sessionInfo() to show us what was loaded.


Jim Holtman
Data Munger Guru
 
What is the problem that you are trying to solve?
Tell me what you want to do, not how you want to do it.

On Thu, Mar 1, 2018 at 6:20 AM, <ttu...@ativamed.com> wrote:

--
You received this message because you are subscribed to the Google Groups "manipulatr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to manipulatr+unsubscribe@googlegroups.com.

Thomas Turner

unread,
Jun 17, 2018, 12:02:54 PM6/17/18
to jim holtman, manipulatr

Hello Jim,

 

Yes, I think I needed to correct my library path to the package….thanks much,

 

Tom

 


http://ativamed.com/images/siglogo.png

 

Thomas James Turner Ph.D., Principal Process Development Engineer

Ativa Medical

1000 Westgate Drive, Suite 100,  St. Paul, Minnesota  55114

612-968-0709 Direct

 

www.ativamed.com

--

To unsubscribe from this group and stop receiving emails from it, send an email to manipulatr+...@googlegroups.com.

Reply all
Reply to author
Forward
0 new messages