Skip to content

install_github not showing functions created in a branch #2008

@ferhat00

Description

@ferhat00

I have created a repository on github, where after creating a branch, adding new functions to an existing R file in the R/ folder in the repo, then pushing my changes to the repo. When I run install_github with the specified branch name:

devtools::install_github("ferhat00/ferhat0testr", ref = "extra-plot")

installation is fine:

Downloading GitHub repo ferhat00/ferhat0testr@extra-plot
√ checking for file 'C:\Users\Ferhat.culfaz\AppData\Local\Temp\RtmpUBaeYs\remotes64385e823cc9\ferhat00-ferhat0testr-30109ba/DESCRIPTION' ... - preparing 'ferhat0testr': √ checking DESCRIPTION meta-information ... - checking for LF line-endings in source and make files and shell scripts - checking for empty or unneeded directories - building 'ferhat0testr_0.1.0.tar.gz'`

Installing package into ‘C:/Users/Ferhat.culfaz/Documents/R/win-library/3.5’
(as ‘lib’ is unspecified)
* installing *source* package 'ferhat0testr' ...
** R
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
converting help for package 'ferhat0testr'
finding HTML links ... done
hello html
** building package indices
** testing if installed package can be loaded
*** arch - i386
*** arch - x64
* DONE (ferhat0testr)
In R CMD INSTALL
Warning messages:
1: In untar2(tarfile, files, list, exdir) :
skipping pax global extended headers
2: In untar2(tarfile, files, list, exdir) :
skipping pax global extended headers

When I run
'ferhat0testr::' I cannot see the new function I created.

Only after I merge my branch to the master, push it, and then run install_github again I can see the new function I have created.

What am I doing wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions