how to install hrbrmisc in R - r

I am a beginner in R, I want the below library hrbrmstr/hrbrmisc for one of my programs.
I have installed Devtools and then tried to install using
install_github("hrbrmstr/hrbrmisc")
It gives an error as Error: could not find function "install_github"
Any help is appreciated...

Just run:
install.packages("devtools")
devtools::install_github("hrbrmstr/hrbrmisc")
to install the package.

Related

Couldn't install packages in R on Linux Redhat (CXX14 is not defined)

I need install 'metaSEM' package in R. It's not allowed to use internet so I tried to use install by the souce file. But it doesn't work. The warning shows as :
ERROR: dependency 'OpenMX' is not availabe for package.
Could you please give my any suggestion about this situation? Thanks a lot.

Troubles installing rattle for R

I apologize in advance if I missed some obvious rookie mistake I did.
I tried installing rattle both through R terminal with the install.packages command and both with
wajig install r-cran-rattle
neither worked: In the first case it downloaded some tar.gz to a temp folder but didn't install anything, in the second one it says that is Unable to locate package r-cran-rattle.
I'm attaching some screenshot to better showcase what I tried to do and what kind of messages I'm getting:
https://imagizer.imageshack.com/img924/2278/06fVvR.png
https://imagizer.imageshack.com/img924/3198/P28Yv1.png
https://imagizer.imageshack.com/img924/1463/ZGpSGb.png
https://imagizer.imageshack.com/img923/5169/aBsT1G.png
https://imagizer.imageshack.com/img923/9031/IaSAyg.png
https://imagizer.imageshack.com/img923/2918/thJ4Ay.png
https://imagizer.imageshack.com/img923/8039/07uKDL.png
https://imagizer.imageshack.com/img924/4054/NGHeoB.png
In the end, when I try the rattle command in R terminal it always says that it cannot find the function rattle. Thanks in advance to whoever will help me.
Best regards,
Andrea.
Thanks for the query.
Rattle has installed just fine. You need to load the rattle package into the library each time you start up R using library(rattle). The call to rattle() should then work.
In general, the steps to install Rattle (with the GUI functionality provided by RGtk2) should be:
$ wajig install r-recommended
$ R
> install.packages("rattle")
> install.packages("RGtk2")
> library(rattle)
> rattle()
A number of other packages will be automatically installed too.
To then install the latest development (but quite stable) release:
> install.packages("rattle", repos="https://rattle.togaware.com", type="source")

How to install MVPARTwrap package in R version 3.6.1?

I am trying to install mvpart and MVPARTwrap packages in R version 3.6.1.
I install on my PC the folder of these two packages in zip version and load them in the relative folder of the package.
When I run the script library(mvpart) I get this message:
ERROR: 'mvpart' package was built before R 3.0.0: please reinstall it."
I try to load this library in the old version of R (version 2.15) and the message is
in install.packages (mvpart): object 'mvpart' not found".
I do not understand why it is impossible to load this package. Thanks so much.
Maybe the answer is no more relevant, but I just had to install those libraries so maybe it will still help someone later. I suggest the install from github as it will install dependencies, you need however to be able to compile the source. So here we go :
first install rtools if it is not already installed go here and follow the instruction
update/install devtools if necessary as described here
using this command, it should work now. you may be asked to update some packages, accept all
devtools::install_github("cran/mvpart")

Trouble installing rgdal package in R 3.3.0

Trying to install rgdal package in R 3.3.0 on Ubuntu 16.04 using install.packages("rgdal") and getting the following error:
In file included from
/usr/local/lib/R/site-library/sp/include/sp.h:13:0,
from rgdal.h:15,
from OGR_write.cpp:11: /usr/share/R/include/S.h:41:3: error: #error S.h can not be used from C++ code: use R.h instead #
error S.h can not be used from C++ code: use R.h instead
anyone else seen this and know how to fix it? Or do we need to wait for a fix to the rgdal package itself?
Wild guess: you could try to reinstall sp before, just to have any dependency up-to-date.

How to install package fOptions?

I'm trying to install the package fOptions but got the error:
> library(fOptions)
Error in library(fOptions) : there is no package called ‘fOptions’
The library function is used to load packages, not to install them. To install a package, you need to use install.packages("fOptions"). See ?library and ?install.packages for more details.

Resources