[R-pkg-devel] submitting to github

Ben Bolker bbo|ker @end|ng |rom gm@||@com
Fri Jan 25 14:24:14 CET 2019


  It's not something I've experienced myself, but I've heard that
Dropbox and Git don't always play nicely together. Maybe try working
outside your dropbox folder?

https://www.anishathalye.com/2015/08/19/git-remote-dropbox/

On Fri, Jan 25, 2019 at 6:45 AM SMITH, MARTIN R.
<martin.smith using durham.ac.uk> wrote:
>
> Hi Troels,
>
> This probably doesn't score points for best practice, but if you only need to post the files to GitHub, you could always set up a new repository on github.com<http://github.com> and simply drag and drop the relevant files from your computer into the browser window.
>
> - Martin
>
> --
>
> Martin R. Smith
> Assistant Professor in Palaeontology
> Department of Earth Sciences
> Durham University
> Mountjoy Site, South Road
> Durham DH1 3LE
>
> T: +44 191 334 2320
> M: +44 774 353 7510
> E: martin.smith using durham.ac.uk<mailto:martin.smith using durham.ac.uk>
> Skype: martin--smith
>
> durham.ac.uk/earth.sciences/staff/academic/?id=14260<http://durham.ac.uk/earth.sciences/staff/academic/?id=14260>
> twitter.com/PalaeoSmith<http://twitter.com/PalaeoSmith>
>
> The information in this e-mail and any attachments is confidential. It is intended solely for the addressee or addressees. If you are not the intended recipient please delete the message and any attachments and notify the sender of mis-delivery. Any use or disclosure of the contents of either is unauthorised and may be unlawful.
> Although steps have been taken to ensure that this e-mail and any attachments are free from any virus, we advise the recipient to ensure they are indeed virus free. All liability for viruses is excluded to the fullest extent permitted by law.
>
>
> On Fri, 25 Jan 2019 at 10:17, Joris Meys <Joris.Meys using ugent.be<mailto:Joris.Meys using ugent.be>> wrote:
> Hi Troels,
>
> origin: none means that git created a local repository but didn't link it
> to a github account yet. If you're not that familiar with git, I suggest
> you take a look at Github Desktop. We use that with our students, and even
> I still use it sometimes. Github Desktop allows you to publish a local
> repository to github with one click. You just have to set your credentials
> after installing.
>
> More info on adding a remote through shell :
> https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
> More info on Github Desktop : https://desktop.github.com/
>
> Hope this helps
> Cheers
> Joris
>
> On Fri, Jan 25, 2019 at 10:22 AM Troels Ring <tring using gvdnet.dk<mailto:tring using gvdnet.dk>> wrote:
>
> > Hi Stefan – thanks for the question: I have a newly developed package
> > which I need to have on github for a publication. So, while there still a
> > minor problems in the package as it is, I started to trying to interact
> > with github so really I am trying to put a working package onto github.
> >
> > All best
> >
> > Troels
> >
> >
> >
> > Fra: Stefan McKinnon Høj-Edwards <sme using iysik.com<mailto:sme using iysik.com>>
> > Sendt: 25. januar 2019 09:59
> > Til: Troels Ring <tring using gvdnet.dk<mailto:tring using gvdnet.dk>>; package-develop <
> > r-package-devel using r-project.org<mailto:r-package-devel using r-project.org>>
> > Emne: Re: [R-pkg-devel] submitting to github
> >
> >
> >
> > Hej Troels,
> >
> >
> >
> > What exactly are you trying to acheive here? I.e., are you trying to 1)
> > put a new project onto github, or 2) copy a repository on github to your
> > local computer, or 3) do as 2) and then update it your current
> > modifications?
> >
> >
> >
> >
> > Stefan McKinnon Høj-Edwards
> >
> > Mobile: (+45) 2888 6598
> >
> >
> >
> >
> >
> > Den fre. 25. jan. 2019 kl. 09.51 skrev Troels Ring <tring using gvdnet.dk<mailto:tring using gvdnet.dk>
> > <mailto:tring using gvdnet.dk<mailto:tring using gvdnet.dk>> >:
> >
> > Dear friends - I'm sorry to bother but seem to be unable to interact
> > constructively with github.
> >
> >
> >
> > I try to follow the instructions from Hadley (thanks!!!!) - i.e. I have a
> > small trial-project which functions well. Since I have tried many times I
> > start from shell with
> >
> > rm -rf .git
> >
> > and then select version control using git (tools, project options,git/svn)
> > -
> > and origin is still marked as "none" after restarting RStudio.
> >
> > Then from shell again: git init
> >
> > Yielding
> >
> > Initialized empty Git repository in
> > C:/Users/Troels/Dropbox/Rown/ABCharge/.git/
> >
> > Rstudio restarted, package reopened: origin still "none"
> >
> > Git panel appears OK.
> >
> >
> >
> > Now from github: add new repository (non present after prior deletions!)
> >
> > Named as package name - repeated in description - repository created
> >
> >
> >
> > Shell opened from RStudio
> >
> > git remote add origin https://github.com/troelsring/ABCharge.git  - works
> > without problems - an origin seems correctly accepted in RStudio - but
> > then:
> >
> > git push -u origin master  - results in:
> >
> >
> >
> > error: src refspec master does not match any.
> >
> > error: failed to push some refs to
> > 'https://github.com/troelsring/ABCharge.git' below in red
> >
> >
> >
> > I seem (also!) to have problems with the SSH keys - Rstudio marks that I
> > have a key in c:/Users/Troels/.ssh/id_rsa -
> >
> > but when I run file.exists("~/.ssh/id_rsa.pub")
> > [1] FALSE -  Is returned - but that is not the issue I guess? I have anyway
> > made a public key as suggested.
> >
> > I have spent hours seeking on the many pages for explanation for this
> > probably simple problem.
> > All best
> > Troels
> >
> >
> >
> >
> >
> >
> >         [[alternative HTML version deleted]]
> >
> > ______________________________________________
> > R-package-devel using r-project.org<mailto:R-package-devel using r-project.org> <mailto:R-package-devel using r-project.org<mailto:R-package-devel using r-project.org>>
> > mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-package-devel
> >
> >
> >         [[alternative HTML version deleted]]
> >
> > ______________________________________________
> > R-package-devel using r-project.org<mailto:R-package-devel using r-project.org> mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-package-devel
> >
>
>
> --
> Joris Meys
> Statistical consultant
>
> Department of Data Analysis and Mathematical Modelling
> Ghent University
> Coupure Links 653, B-9000 Gent (Belgium)
> <https://maps.google.com/?q=Coupure+links+653,%C2%A0B-9000+Gent,%C2%A0Belgium&entry=gmail&source=g>
>
> tel: +32 (0)9 264 61 79
> -----------
> Biowiskundedagen 2017-2018
> http://www.biowiskundedagen.ugent.be/
>
> -------------------------------
> Disclaimer : http://helpdesk.ugent.be/e-maildisclaimer.php
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> R-package-devel using r-project.org<mailto:R-package-devel using r-project.org> mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> R-package-devel using r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel



More information about the R-package-devel mailing list