Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

createEmptyGithubRepo - the 'repoDir' argument #142

Closed
pbiecek opened this issue Nov 28, 2015 · 6 comments
Closed

createEmptyGithubRepo - the 'repoDir' argument #142

pbiecek opened this issue Nov 28, 2015 · 6 comments

Comments

@pbiecek
Copy link
Owner

pbiecek commented Nov 28, 2015

I think that createEmptyGithubRepo should take both repoName and repoDir arguments, to specify where is should be located on local disk and how it should be named at GitHub.

@pbiecek pbiecek changed the title createEmptyGithubRepo createEmptyGithubRepo - the 'repoDir' argument Nov 28, 2015
@MarcinKosinski
Copy link
Collaborator

This may somehow lead to changes in ?agithub functions that may be beyond our skills' spectrum :) Moreover, wouldn't it be too complicated for a user?

@pbiecek
Copy link
Owner Author

pbiecek commented Nov 29, 2015

First time when I used createEmptyGithubRepo I was quite surprised that the repo was created in the local directory.
I try to keep all github repositories in one directory and this is not necessary the directory in which I have a knitr report (which will be using github to store artifacts).

So if it is impossible then it is impossible, butI see that the agithub function can do the setwd() on the beginning and then again at the end (after creation of the github repository).

@MarcinKosinski
Copy link
Collaborator

@pbiecek I've added repoDir parameter to the createEmpyGithubRepo. Can you check whether is that what we planned?

@pbiecek
Copy link
Owner Author

pbiecek commented Dec 29, 2015

Correct me if I'm wrong, but here repoDir has different meaning than in
createLocalRepo.

if repoDir is missing then repoDir = repo

and then you create a dir
dir.create(file.path(repoDir, repo))

So it is not possible to create repo in the root of github repository
(like here:https://github.com/pbiecek/graphGallery)

but you will have always a directory with repo files in github repository.

2015-12-28 19:29 GMT+01:00 Marcin Kosiński notifications@github.com:

@pbiecek https://github.com/pbiecek I've added repoDir parameter to the
createEmpyGithubRepo. Can you check whether is that what we planned?


Reply to this email directly or view it on GitHub
#142 (comment).

pozdrawiam serdecznie,
Przemysław Biecek

MarcinKosinski added a commit that referenced this issue Dec 29, 2015
@MarcinKosinski
Copy link
Collaborator

Ok I think now it should be more clean (I've added a commit).
I am taking in the consideration if repoDir is provided or not.
When user specifes repoDir for createEmptyGithubRepo he must have an extra
folder inside repoDir is it's
different than repo parameter to enable git synchronization.

Do you suggest changing the name to repoLocal or something?

2015-12-29 18:12 GMT+01:00 Przemysław Biecek notifications@github.com:

Correct me if I'm wrong, but here repoDir has different meaning than in
createLocalRepo.

if repoDir is missing then repoDir = repo

and then you create a dir
dir.create(file.path(repoDir, repo))

So it is not possible to create repo in the root of github repository
(like here:https://github.com/pbiecek/graphGallery)

but you will have always a directory with repo files in github repository.

2015-12-28 19:29 GMT+01:00 Marcin Kosiński notifications@github.com:

@pbiecek https://github.com/pbiecek I've added repoDir parameter to
the
createEmpyGithubRepo. Can you check whether is that what we planned?


Reply to this email directly or view it on GitHub
<#142 (comment)
.

pozdrawiam serdecznie,
Przemysław Biecek


Reply to this email directly or view it on GitHub
#142 (comment).

@pbiecek
Copy link
Owner Author

pbiecek commented Jan 1, 2016

I do not think that a new argument's name is the best solution (it is a solution but adds some complexity).
I guess that the issue pop up only if someone would like to have different name of the github repository than name of local folder.
So, since it's still an experimental feature let's keep it as it is right now.
And by using it we will figure out if it's optimal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants