Installing specific R package from specific branch from github repo on travis-ci

Rainer

I am developing a package which depends on a different package of mine which is still on github. I am using travis-ci to test the package. I added the following to the .travis.yml file to install the dmdScheme package from the dev branch:

language: r
r_github_packages: r-lib/remotes#340
r_github_packages: rkrug/dmdScheme#dev

but I get the following error at travis

Installing R packages from GitHub: rkrug/dmdScheme#dev
0.19s$ Rscript -e 'remotes::install_github(c("rkrug/dmdScheme#dev"))'
Error in parse_repo_spec(repo) : 
  Invalid git repo specification: 'rkrug/dmdScheme#dev'
Calls: <Anonymous> -> lapply -> FUN -> parse_git_repo -> parse_repo_spec
Execution halted
The command "Rscript -e 'remotes::install_github(c("rkrug/dmdScheme#dev"))'" failed and exited with 1 during .

The remotes package is installed.

My question:

What is the correct syntax, to specify the branch (or ref in general) to be used in the command r_github_packages?

duckmayr

As we can see at the Devtools dependencies vignette, we can use @ to specify specific commits, etc. So, you need:

r_github_packages: rkrug/dmdScheme@dev

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Install specific branch from github using Npm

git - pulling from specific branch

Installing a package offline from GitHub

Travis CI cache: ignore specific folder/file from cache

Installing nuget package from GitHub

Install package with pip from specific branch of github

How to pull a specific branch from Github

Get all Github issues from repo with specific label?

Git pull from specific branch

Custom label for Travis CI badge on github repo

How to restrict build failure emails to only a specific branch in travis CI?

Is it possible to delete specific commits from forked repo by github website

Publish in a repo to a specific branch with GitHub Api

Remove a specific commit from a branch

Move Specific Files from One Branch to Another Branch in Github

gitlab-ci: exclude merge requests from specific branch

push from git/svn repo into a git/branch at specific commit

Pulling a specific branch from git

R: Installing package from github/version?

How to instruct yum to install a specific package (rpm) from a specific repo

Can a specific file from a specific github repo tree be installed with pip?

Make a GitHub repo private from within R using the gh package

Consume specific package and specific version from a monorepo in an external repo

Jenkins and Github trigger PUSH from specific branch

Cloning a specific branch from GitHub - fatal error

Error 404 installing R package from public github repro

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

Running Github Action When PR is raised from specific branch name to specific branch name?

Migrate repo from Github to a specific Gitlab group