Problem with installation of semMediation package on Ubuntu - r

I'm trying to install the semMediation package on Ubuntu through devtools:
install.packages("devtools")
devtools::install_github("cardiomoon/semMediation")
reference.
But:
Error: Failed to install 'unknown package' from GitHub:
HTTP error 404.
Not Found
Did you spell the repo owner (`cardiomoon`) and repo name (`semMediation`) correctly?
- If spelling is correct, check that you have the required permissions to access the repo.
What can it be?

There was a semMediation package on github. The author of the package wrote a tutorial on RPubs.[See below][1]
  [1]: https://rpubs.com/cardiomoon/200846
However, I don't see any repo with semMediation right now. Maybe because the author deleted the repo. 
But you can still search a repo name with "semMediation" in All Github, because someone might fork that repo. 

Use
devtools::install_github("guhjy/semMediation")
And be happy

Related

how to install binary package from github in R

I have an R binary package in github.
The following code does not work.
Could any one can help me to install this.
devtools::install_github('yikeshu0611/set',type = 'binary')
Greate tahnks.
for me the package doesn't exist. I checked the Repos list also for yikeshu0611 at
https://github.com/yikeshu0611?after=Y3Vyc29yOnYyOpK0MjAyMC0wMy0wMlQxMzoxNzo0OVrODpDEKg%3D%3D&tab=repositories
But there is not "nhanesR" there. Please check.
> devtools::install_github('yikeshu0611/nhanesR',type = 'binary')
Error: Failed to install 'unknown package' from GitHub:
HTTP error 404.
Not Found
Did you spell the repo owner (`yikeshu0611`) and repo name (`nhanesR`) correctly?
- If spelling is correct, check that you have the required permissions to access the repo.

HTTP 404 error when installing R package from public repo on Github

I'm trying to install an R package from a public Github (https://github.com/verena-zuber/demo_AMD):
devtools::install_github("verena-zuber/demo_AMD")
Failed to install 'unknown package' from GitHub:
HTTP error 404.
Not Found
Did you spell the repo owner (verena-zuber) and repo name (demo_AMD) correctly?
If spelling is correct, check that you have the required permissions to access the repo.
As far as I can see the repro is public. Do you have any idea what is the issue here?
The thing is, it's not a package per se. It's just a few .R (and .Rmd) files collected together :). Therefore you can't install it as a package. However, you can download the whole set and use it sourcing the .R files, like:
source("summary_mvMR_SSS.R")
source("summary_mvMR_BF.R")
You can check in .Rmd how it's done.
Regards,
Grzegorz

HTTP 404 error when installing R package from public repo on Github using devtools

I'm trying to install an R package from a public Github:
devtools::install_github(repo='FrankD/EDISON',
ref='MultipleTimeSeries',
subdir='Package/EDISON/')
Error: Failed to install 'unknown package' from GitHub:
HTTP error 404.
Not Found
Did you spell the repo owner (datarichard) and repo name (EDISON) correctly?
- If spelling is correct, check that you have the required permissions to access the repo.
Does anyone know why I'm getting this error? The same command used to work 7 months ago so something changed. My devtools version is 2.2.1
I've tried forking it to my own repo to remove any hidden authorisation issues but I get the same error, e.g.:
devtools::install_github(repo='datarichard/EDISON',
ref='MultipleTimeSeries',
subdir='Package/EDISON/')
You're missing a forward slash on your subdir, and the ending slash can be removed:
devtools::install_github(repo='datarichard/EDISON',
ref='MultipleTimeSeries',
subdir='/Package/EDISON') # here

How to install rword2vec package

Please provide me the steps how to install rword2vec. I referred to the previous posts and followed installation steps and got the error:
library(devtools)
install_github("mukul13/rword2vec")
Downloading GitHub repo mukul13/rword2vec#master
from URL https://api.github.com/repos/mukul13/rword2vec/zipball/master
Installation failed: Could not find build tools necessary to build rword2vec
I also tried to follow the steps regarding build tool provided in this link, but no success (I am using macOS).
Try installing Rtools (3.4 latest), mine showed similar error and automatically installed it. Hope it helps

R's devtools - install from github with "configure" file

I have an R package on github that uses a "configure" script (since some of the C code depends on GSL libraries). I try installing the package using github_install() function from devtools package and get the error:
(as ‘lib’ is unspecified)
* installing *source* package ‘wrightscape’ ...
ERROR: 'configure' exists but is not executable -- see the 'R Installation and Administration Manual'
Not sure what to do -- are there such a thing as execute permissions for a file on github? is this a devtools issue or a configuration issue? (Installing the package from source works fine for me). The package is here. https://github.com/cboettig/wrightscape
This is now fixed in the latest version of devtools (0.7).
Git does not manage file permissions directly. It is usually the responsibility of a build or install script to adjust permissions correctly once the bits are delivered from git. There are third party tools that can help with this. See the discussion on SO question Retaining file permissions with Git.
Hope this helps.
I had a similar issue which was caused by my /tmp dir being mounted noexec, and solved by setting a different TMPDIR, as explained here
export TMPDIR=~/tmp

Resources