unable to install "dplyr" package in R - r

While installing the dplyr package I am getting the error in RStudio, whereas if I am trying to install the same in R, I ma getting an error saying:
package dplyr is not available (for R version 3.5.2)
this is the error I am getting in RStudio:
Error: package or namespace load failed for ‘dplyr’ in library.dynam(lib, package, package.lib):
DLL ‘bindrcpp’ not found: maybe not installed for this architecture?

Have you checked what version of R you are using? Just use the
version
command. If it's less than 3.5.2 you might find that libraries dplyr requires aren't being installed and that's why it's failing to find, for example, bindrcpp.
In my corporate environment I had a very similar issue trying to install dplyr after our tech support operation upgraded my PC, but installed a too-old version of R.

Related

How to solve expss package loading problem

I would like to install the expss package but it keeps returning an error.
Looked around for other with similar problems and tried re-installing several packages but nothing seems to work. Does anyone have a suggestion how to fixed the problem?
So far i tried re-installing:
install.packages("stringr")
install.packages("knitr")
install.packages("checkmate")
install.packages("htmlwidgets")
install.packages("htmltools")
install.packages("htmlTable")
install.packages("expss")
But Rstudio keeps returning with and error :
Error: package or namespace load failed for ‘expss’:
object 'mtfrm' not found whilst loading namespace 'expss'
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/Library/Frameworks/R.framework/Versions/4.1/Resources/library/expss’
Warning in install.packages :
installation of package ‘expss’ had non-zero exit status
The downloaded source packages are in
‘/private/var/folders/cl/5_wnd4b14y7b40zc80n1r3wdkcnbkn/T/RtmpdcLWsn/downloaded_packages’
According to this issue, the current version of expss won't install in versions of R before 4.2. This has recently been fixed in the development version. You could try:
updating your version of R to version 4.2 (probably the simplest solution if you don't need to keep an older version of R)
installing the development version of expss from GitHub: first install the remotes package, then remotes::install_github("gdemin/expss")
install an older version of expss (remotes::install_version("expss", "0.11.1"))

An error when trying to install a package related to R version

I am trying to install the package ggpubr using the command install.packages('ggpubr') but I'm getting the error:
Installing package into ‘/home/nasser/R/x86_64-pc-linux-gnu-library/3.4’
(as ‘lib’ is unspecified)
Warning in install.packages :
dependency ‘cowplot’ is not available
I then tried to install the package cowplot using install.packages('cowplot') command and again I got the following error Warning in install.packages : package ‘cowplot’ is not available (for R version 3.4.4)
I searched for a solution and found a suggestion to use the following command:
devtools::install_github("wilkelab/cowplot")
and I got this error ERROR: this R is version 3.4.4, package 'cowplot' requires R >= 3.5.0
After a long time searching for a solution, I ended up having no perfect solution.
Can you please suggest me a way to avoid this error?
You have version 3.4.4 of R installed. The package cowplot requires version 3.5.0 or higher. You must upgrade your version of R.
Sometimes this is not possible (such as on a work network). In these cases, an alternative is to install an older version of cowplot that does not have that requirement. Of course, this means you are using an older version of the package. Archives are available on CRAN for older package versions.
https://cran.r-project.org/src/contrib/Archive/cowplot/

Error R version installed with different internals, have installed ggplot many times

Whenever I try to load ggplot the following error comes:
Error: package or namespace load failed for ‘ggplot2’:
package ‘scales’ was installed by an R version with different internals; it needs to be reinstalled for use with this R version

Package questionr

keep receiving the message below when running this: library("questionr")
Error: package or namespace load failed for ‘questionr’: package
‘promises’ was installed by an R version with different internals; it
needs to be reinstalled for use with this R version

Error: package 'DBI' required by 'AnnotationDbi' could not be found in R(v 2.7.0)

I install old version of R (windows version 2.7.0).
For using bioconductor in R, use source("http://bioconductor.org/getBioC.R")
biocLite("GO.db")
library("GO.db")
When I load GO.db, it gives error:
Loading required package: AnnotationDbi
Error: package 'DBI' required by 'AnnotationDbi' could not be found
How can I solve this problem? Please Help.
R packages are often require or depend upon other packages. For example, GO.db requires AnnotationDbi. When a package in Bioconductor requires another Bioconductor package, it will usually just install both of them at the same time.
Unfortunately, there are times when a package from Bioconductor requires a package from CRAN, and you will need to install each package separately. In this case, DBI is required by AnnotationDbi, but it is on CRAN.
Try installing DBI:
install.packages("DBI")
Then try loading GO.db. You may have to re-install AnnotationDbi again to get it to work.

Resources