Print

Print


Hmm, I think you can setup a personal access token to allow R to access
your private repos, but that might be a bit too much.
https://urldefense.proofpoint.com/v2/url?u=https-3A__stackoverflow.com_questions_21171142_how-2Dto-2Dinstall-2Dr-2Dpackage-2Dfrom-2Dprivate-2Drepo-2Dusing-2Ddevtools-2Dinstall-2Dgithub&d=DwIFaQ&c=pZJPUDQ3SB9JplYbifm4nt2lEVG5pWx2KikqINpWlZM&r=QWxQId63qB2iSP1ggUL7kQsdfEWUTu6qCGEw8Xuo91A&m=RjX2AXalAnX1C7OzDkgeypO5Fo0fkkWHfwMRmkVH0lI&s=gsJenN0VCKyZyk0Kkx6DhMVRRiQs1uDAXOAQwHGIlM4&e=

Maybe the `install_deps` function could be run first before installing the
package from local source?
https://urldefense.proofpoint.com/v2/url?u=https-3A__rdrr.io_cran_devtools_man_install-5Fdeps.html&d=DwIFaQ&c=pZJPUDQ3SB9JplYbifm4nt2lEVG5pWx2KikqINpWlZM&r=QWxQId63qB2iSP1ggUL7kQsdfEWUTu6qCGEw8Xuo91A&m=RjX2AXalAnX1C7OzDkgeypO5Fo0fkkWHfwMRmkVH0lI&s=x_ZEqvjEcJ4AXRikSt9S63LQRZFGLRqbnXy54U7fu40&e=

Best,
--
Hao Ye
[log in to unmask]

On Tue, Oct 9, 2018 at 11:28 AM, Redford,Liz <[log in to unmask]> wrote:

> Re. Ben--sure, here is the text:
>
> > install.packages("/Users/kateratliff/Downloads/projectimplic
> it_0.1.0.tar.gz",
> +                  repos = NULL, type = "source")
> ERROR: dependency ‘glue’ is not available for package ‘projectimplicit’
> * removing ‘/Library/Frameworks/R.framework/Versions/3.5/Resources/
> library/projectimplicit’
> Warning in install.packages :
>   installation of package ‘/Users/kateratliff/Downloads/projectimplicit_0.1.0.tar.gz’
> had non-zero exit status
>
> Re. Hao--Thank you! I have read something similar, but the problem with
> that approach seems that it is not possible to install from github while
> keeping the repo private?
>
>
> ------------------------------
> *From:* UF R Users List <[log in to unmask]> on behalf of Ben Bolker
> <[log in to unmask]>
> *Sent:* Tuesday, October 9, 2018 10:18:37 AM
> *To:* [log in to unmask]
> *Subject:* Re: Help needed: R package not installing other packages
>
>   Can you please cut and paste the text of the error rather than
> attaching a screenshot?  It might have been stripped by the mailing list
> *or* mangled by my mail reader, but in any case it was gone by the time
> I saw the message ...  (in general, cutting and pasting text rather than
> screenshots is good practice - minimizes this kind of problem and makes
> it easier in cases where recipients want to try out code for themselves;
> also, the [long] posting guide linked below does say "no binary
> attachments" ...)
>
>
>
> On 2018-10-09 10:04 AM, Redford,Liz wrote:
> > Hi there, I wrote a minimal package that also uses the glue package.
> > "Glue" is under Imports in DESCRIPTION, and NAMESPACE says import(glue).
> > But when I build the package, email it to myself, and try to install it
> > on my other computer, I get an error:
> >
> > image.png
> >
> > The single use of glue is called using ::.
> > What am I missing? I'd appreciate any insight if possible! Thanks!
> >
> >
> > This list strives to be beginner friendly. However, we still ask that
> > you PLEASE do read the posting guide
> > https://urldefense.proofpoint.com/v2/url?u=http-3A__www.R-
> 2Dproject.org_posting-2Dguide.html&d=DwID-g&c=
> pZJPUDQ3SB9JplYbifm4nt2lEVG5pWx2KikqINpWlZM&r=
> QWxQId63qB2iSP1ggUL7kQsdfEWUTu6qCGEw8Xuo91A&m=
> qK0PaTUdmkiUEXKVKW80NlmXqiiRScE397LnzIZF4b4&s=a7k9ju-t1b6ONxJZAzmIf_n5Vd_
> laWP7SpMuvLO02pE&e=
> > <https://urldefense.proofpoint.com/v2/url?u=http-
> 3A__www.R-2Dproject.org_posting-2Dguide.html&d=DwMFAw&c=
> pZJPUDQ3SB9JplYbifm4nt2lEVG5pWx2KikqINpWlZM&r=
> 3MJaagrtDUL79e1ACXZji8lYXjs07_ujkEIg1it6gQ0&m=p5-
> fQTyyenAOciTFuHi2XXwtkSgdTzuC4m_2TqYivj4&s=Sp_3BbyDhCvwsGOMFSUN9ViwJl6-
> IcCsOcMqkky6tW8&e=>
> > and provide commented, minimal, self-contained, reproducible code.
>
> This list strives to be beginner friendly.  However, we still ask that you
> PLEASE do read the posting guide https://urldefense.proofpoint.com/v2/url?u=http-3A__www.R-2Dproject.org_&d=DwIFaQ&c=pZJPUDQ3SB9JplYbifm4nt2lEVG5pWx2KikqINpWlZM&r=QWxQId63qB2iSP1ggUL7kQsdfEWUTu6qCGEw8Xuo91A&m=RjX2AXalAnX1C7OzDkgeypO5Fo0fkkWHfwMRmkVH0lI&s=86lUzlsilVHNk8sDcQX4WSdlfef5IsD7ZcsfZcT4hEc&e=
> posting-guide.html
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__www.R-2Dproject.org_posting-2Dguide.html&d=DwMF-g&c=pZJPUDQ3SB9JplYbifm4nt2lEVG5pWx2KikqINpWlZM&r=SEmRVMqAFbH_Cx3K2dozZfH2QG2rALCjx8XkDKdS6dE&m=n5g8UoP68kW0jUBJgaCV1uCOvIZL6drXtD4nF7UzNkA&s=Fax5rME29gbY1YJ-SokvNjjfJj1kMEspVbS6PGT6rUM&e=>
> and provide commented, minimal, self-contained, reproducible code.
> This list strives to be beginner friendly. However, we still ask that you
> PLEASE do read the posting guide https://urldefense.proofpoint.com/v2/url?u=http-3A__www.R-2Dproject.org_&d=DwIFaQ&c=pZJPUDQ3SB9JplYbifm4nt2lEVG5pWx2KikqINpWlZM&r=QWxQId63qB2iSP1ggUL7kQsdfEWUTu6qCGEw8Xuo91A&m=RjX2AXalAnX1C7OzDkgeypO5Fo0fkkWHfwMRmkVH0lI&s=86lUzlsilVHNk8sDcQX4WSdlfef5IsD7ZcsfZcT4hEc&e=
> posting-guide.html
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__www.R-2Dproject.org_posting-2Dguide.html&d=DwMF-g&c=pZJPUDQ3SB9JplYbifm4nt2lEVG5pWx2KikqINpWlZM&r=SEmRVMqAFbH_Cx3K2dozZfH2QG2rALCjx8XkDKdS6dE&m=n5g8UoP68kW0jUBJgaCV1uCOvIZL6drXtD4nF7UzNkA&s=Fax5rME29gbY1YJ-SokvNjjfJj1kMEspVbS6PGT6rUM&e=>
> and provide commented, minimal, self-contained, reproducible code.

This list strives to be beginner friendly.  However, we still ask that you
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.