Error: Results must be all atomic, or all data frames

1,067 views
Skip to first unread message

Sunny

unread,
Jun 4, 2015, 5:25:47 PM6/4/15
to ggp...@googlegroups.com
Hi, I wonder what does it mean by "Results must be all atomic, or all data frames" ? I am pretty sure the datasets I was plotting is a dataframe (class(dataset)="data.frame") So I am not sure what is wrong. 



Ben Bond-Lamberty

unread,
Jun 4, 2015, 6:47:10 PM6/4/15
to Sunny, ggp...@googlegroups.com
If you can provide a reproducible example (see link below) for the error, it'll be a lot easier for people to help.
Ben
On Thu, Jun 4, 2015 at 5:25 PM Sunny <sima...@gmail.com> wrote:
Hi, I wonder what does it mean by "Results must be all atomic, or all data frames" ? I am pretty sure the datasets I was plotting is a dataframe (class(dataset)="data.frame") So I am not sure what is wrong. 



--
--
You received this message because you are subscribed to the ggplot2 mailing list.
Please provide a reproducible example: https://github.com/hadley/devtools/wiki/Reproducibility
 
To post: email ggp...@googlegroups.com
To unsubscribe: email ggplot2+u...@googlegroups.com
More options: http://groups.google.com/group/ggplot2

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

Hadley Wickham

unread,
Jun 5, 2015, 8:33:33 AM6/5/15
to Sunny, ggplot2
This is a bug in plyr - I've fixed it in the dev version, which you
can get with devtools::install_github("hadley/plyr")

Hadley
> --
> --
> You received this message because you are subscribed to the ggplot2 mailing
> list.
> Please provide a reproducible example:
> https://github.com/hadley/devtools/wiki/Reproducibility
>
> To post: email ggp...@googlegroups.com
> To unsubscribe: email ggplot2+u...@googlegroups.com
> More options: http://groups.google.com/group/ggplot2
>
> ---
> You received this message because you are subscribed to the Google Groups
> "ggplot2" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ggplot2+u...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
http://had.co.nz/

John Flournoy

unread,
Jun 10, 2015, 3:31:01 PM6/10/15
to ggp...@googlegroups.com, sima...@gmail.com
Thanks, Hadley. Did the trick for me, too. 

mengying Li

unread,
Jul 11, 2015, 7:08:23 AM7/11/15
to ggp...@googlegroups.com, sima...@gmail.com
Hi Hadley,

Ggplot2 starts behaving very weird today and I posted my problem herehttp://stackoverflow.com/questions/31352789/keep-hitting-the-error-loop-apply-not-resolved-from-current-namespace-plyr. Do you have an idea about how to fix it?

Thanks


On Friday, June 5, 2015 at 5:33:33 AM UTC-7, Hadley Wickham wrote:

Sourav Sarkar

unread,
Jun 6, 2017, 5:43:04 AM6/6/17
to ggplot2, sima...@gmail.com
Hi Hadley,
Does "hadley/plyr" work with R version 3.2.3?
Thank You!

Roman Luštrik

unread,
Jun 6, 2017, 7:18:53 AM6/6/17
to Sourav Sarkar, ggplot2, sima...@gmail.com
The description file says R >= 3.1.0. I've successfully installed it with R 3.3.3. My guess would be that it works with 3.2.3 as well.

Cheers,
Roman


More options: http://groups.google.com/group/ggplot2

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

For more options, visit https://groups.google.com/d/optout.



--
In God we trust, all others bring data.

Sourav Sarkar

unread,
Jun 6, 2017, 2:03:40 PM6/6/17
to ggplot2, sour...@gmail.com, sima...@gmail.com
Thank You Roman. Actually when I type  install.packages("hadley/plyr")  I get a reply:
package ‘hadley/plyr’ is not available (for R version 3.2.3). The same holds for R version 3.3.0 also. Thank You!

Roman Luštrik

unread,
Jun 6, 2017, 2:11:43 PM6/6/17
to Sourav Sarkar, ggplot2, sima...@gmail.com
The changes Hadley made to the package are, until the package version gets uploaded to CRAN, available only through GitHub. One way of installing packages from GitHub is using devtools and function called install_github. Also, to do this on Windows, you'll need the proper toolchain (Rtools).

Cheers,
Roman


More options: http://groups.google.com/group/ggplot2

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

For more options, visit https://groups.google.com/d/optout.

Hadley Wickham

unread,
Jun 6, 2017, 4:41:13 PM6/6/17
to Sourav Sarkar, ggplot2, Sunny
The name of the package is dplyr, not hadley/plyr.
Hadley
http://hadley.nz

Sourav Sarkar

unread,
Jun 7, 2017, 10:32:04 PM6/7/17
to ggplot2
Thank you very much Roman and Hadley! However, after installing the dplyr package, I am unable to install devtools by the command devtools::install_github("hadley/plyr").
Thank You!

Brandon Hurr

unread,
Jun 8, 2017, 9:29:55 AM6/8/17
to Sourav Sarkar, ggplot2
Well... for starters that's not how you install devtools. And, also, you can't install devtools using devtools if you don't have devtools installed. 

#First install Devtools using the R package manager
install.packages("devtools")

# Now you can use devtools to install other things from  non-CRAN sources
devtools::install_github("tidyverse/dplyr")
devtools::install_github("hadley/plyr")

HTH, 
B

--
--
You received this message because you are subscribed to the ggplot2 mailing list.
Please provide a reproducible example: https://github.com/hadley/devtools/wiki/Reproducibility
 
To post: email ggp...@googlegroups.com

More options: http://groups.google.com/group/ggplot2

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

Sourav Sarkar

unread,
Jun 8, 2017, 3:03:25 PM6/8/17
to ggplot2, sour...@gmail.com
Thank You Brandon. I had installed devtools. However, when I try to install "tidyverse/dplyr" or "hadley/plyr", I get an error
Installation failed: Command failed (1)

Thank you!
On Thursday, June 8, 2017 at 9:29:55 AM UTC-4, Brandon Hurr wrote:
Well... for starters that's not how you install devtools. And, also, you can't install devtools using devtools if you don't have devtools installed. 

#First install Devtools using the R package manager
install.packages("devtools")

# Now you can use devtools to install other things from  non-CRAN sources
devtools::install_github("tidyverse/dplyr")
devtools::install_github("hadley/plyr")

HTH, 
B
On Wed, Jun 7, 2017 at 7:32 PM, Sourav Sarkar <sour...@gmail.com> wrote:
Thank you very much Roman and Hadley! However, after installing the dplyr package, I am unable to install devtools by the command devtools::install_github("hadley/plyr").
Thank You!


On Thursday, June 4, 2015 at 5:25:47 PM UTC-4, Sunny wrote:
Hi, I wonder what does it mean by "Results must be all atomic, or all data frames" ? I am pretty sure the datasets I was plotting is a dataframe (class(dataset)="data.frame") So I am not sure what is wrong. 



--
--
You received this message because you are subscribed to the ggplot2 mailing list.
Please provide a reproducible example: https://github.com/hadley/devtools/wiki/Reproducibility
 
To post: email ggp...@googlegroups.com
To unsubscribe: email ggplot2+u...@googlegroups.com

More options: http://groups.google.com/group/ggplot2

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

Brandon Hurr

unread,
Jun 8, 2017, 3:26:46 PM6/8/17
to Sourav Sarkar, ggplot2
You haven't said what platform you are on. 
run `devtools::session_info()` and paste the output in your response.

If you're on windows, have you installed Rtools like Roman suggested? This gives you the ability to compile packages on a windows machine. 

If you're on a mac, have you installed everything needed to compile packages per here:

If you're on Linux, I have no idea, but generally you can apt-get anything you need. Search for a tutorial. The penguin compels you.




More options: http://groups.google.com/group/ggplot2

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

Sourav Sarkar

unread,
Jun 8, 2017, 5:18:05 PM6/8/17
to ggplot2, sour...@gmail.com
Thank You Very much Brandon! The output is:
Session info ----------------------------------------------------------------------------------------------------------------------------------------------------
 setting  value                       
 version  R version 3.3.0 (2016-05-03)
 system   x86_64, mingw32             
 ui       RStudio (0.99.903)          
 language (EN)                        
 collate  English_United States.1252  
 tz       America/New_York            
 date     2017-06-08                  

Packages --------------------------------------------------------------------------------------------------------------------------------------------------------
 package    * version date       source        
 assertthat   0.2.0   2017-04-11 CRAN (R 3.3.3)
 base       * 3.3.0   2016-05-04 local         
 curl         2.6     2017-04-27 CRAN (R 3.3.3)
 datasets   * 3.3.0   2016-05-04 local         
 DBI          0.6-1   2017-04-01 CRAN (R 3.3.3)
 devtools   * 1.13.0  2017-05-08 CRAN (R 3.3.0)
 digest       0.6.12  2017-01-27 CRAN (R 3.3.2)
 dplyr      * 0.5.0   2016-06-24 CRAN (R 3.3.3)
 git2r        0.18.0  2017-01-01 CRAN (R 3.3.2)
 graphics   * 3.3.0   2016-05-04 local         
 grDevices  * 3.3.0   2016-05-04 local         
 httr         1.2.1   2016-07-03 CRAN (R 3.3.1)
 magrittr     1.5     2014-11-22 CRAN (R 3.3.0)
 memoise      1.1.0   2017-04-21 CRAN (R 3.3.3)
 methods    * 3.3.0   2016-05-04 local         
 R6           2.2.0   2016-10-05 CRAN (R 3.3.1)
 Rcpp         0.12.11 2017-05-22 CRAN (R 3.3.3)
 rlang        0.1.1   2017-05-18 CRAN (R 3.3.3)
 stats      * 3.3.0   2016-05-04 local         
 tibble       1.3.3   2017-05-28 CRAN (R 3.3.3)
 tools        3.3.0   2016-05-04 local         
 utils      * 3.3.0   2016-05-04 local         
 withr        1.0.2   2016-06-20 CRAN (R 3.3.1)

Sourav Sarkar

unread,
Jun 8, 2017, 5:20:58 PM6/8/17
to ggplot2, sour...@gmail.com
I am using Windows. When I try to install Rtools, it says:
Warning in install.packages :
  package ‘Rtools’ is not available (for R version 3.3.0)

Thank You!

Brandon Hurr

unread,
Jun 8, 2017, 5:28:59 PM6/8/17
to Sourav Sarkar, ggplot2
Please install Rtools from this link:

Once you've done that, try installing from github once again. 

If you are still having trouble, you should seek help from a local expert who can get their hands on your machine and support you. 




More options: http://groups.google.com/group/ggplot2

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

Sourav Sarkar

unread,
Jun 8, 2017, 6:01:47 PM6/8/17
to ggplot2, sour...@gmail.com

Thank You very much for all your help! I shall do so!

Yours sincerely
Sourav
Reply all
Reply to author
Forward
0 new messages