In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, : there is no package called ‘gridExtra’

0 votes

Hi Guys,

I am trying to use the gridExtra module to combine two plot. But it is showing me the below error.

gridExtra::grid.arrange(iris1,iris2)
Error in loadNamespace(name) : there is no package called ‘gridExtra’

How can I solve this error?

Jun 9 in Data Analytics by akhtar
• 17,690 points
88 views

1 answer to this question.

0 votes

Hi@akhtar,

In your r studio, the gridExtra module is not available. You can use the below command to install this module.

> install.packages('gridExtra')
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
https://cran.rstudio.com/bin/windows/Rtools/
Installing package into ‘C:/Users/Nadeem Akhter/Documents/R/win-library/4.0’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/gridExtra_2.3.zip'
Content type 'application/zip' length 1109122 bytes (1.1 MB)
downloaded 1.1 MB
package ‘gridExtra’ successfully unpacked and MD5 sums checke
The downloaded binary packages are in
C:\Users\Nadeem Akhter\AppData\Local\Temp\Rtmps3pgcC\downloaded_packages

Hope this will solve your error.

answered Jun 9 by MD
• 40,740 points

Related Questions In Data Analytics

0 votes
1 answer

Is there any way to check for missing packages and install them in R?

There are 2 options: Either you can use ...READ MORE

answered Apr 17, 2018 in Data Analytics by nirvana
• 3,060 points
110 views
0 votes
1 answer

How to find out the package version which is loaded in R?

You can use sessionInfo() to accomplish that. > ...READ MORE

answered Apr 18, 2018 in Data Analytics by zombie
• 3,750 points
64 views
0 votes
2 answers

How can we count TRUE values in a logical vector?

Hi, You can get a count of all ...READ MORE

answered Aug 20, 2019 in Data Analytics by anonymous
• 32,460 points
5,327 views
0 votes
1 answer

Is there any easy way to fill in missing data?

You can try the following code: First, you ...READ MORE

answered Jun 20, 2018 in Data Analytics by DataKing99
• 8,150 points
147 views
+9 votes
3 answers

Which is a better initiative to learn data science: Python or R?

Well it truly depends on your requirement, If ...READ MORE

answered Aug 8, 2018 in Data Analytics by Abhi
• 3,680 points
169 views
0 votes
1 answer

Error saying "vector size cannot be NA" when using R with data mining

You can use the removesparseterm function.  Removes sparse ...READ MORE

answered Nov 15, 2018 in Data Analytics by Maverick
• 10,820 points
1,280 views
+1 vote
2 answers
0 votes
1 answer

Trying to find frequent itemsets of a data set using arules package

Try replacing ID <- c("A123","A123","A123","A123","B456","B456","B456") item <- c("bread", "butter", "milk", ...READ MORE

answered Nov 15, 2018 in Data Analytics by Maverick
• 10,820 points
89 views
0 votes
1 answer

Error in library(cowplot) : there is no package called ‘cowplot’

Hi@akhtar, By default, the cowplot module is not ...READ MORE

answered Jun 10 in Data Analytics by MD
• 40,740 points
93 views
0 votes
1 answer

How to install R Studio in Windows?

Hi@akhtar, To install R Studio in your system, ...READ MORE

answered Apr 29 in Data Analytics by MD
• 40,740 points
133 views