Closed moldach closed 5 years ago
Thanks!
Can you please run the brand-new starters::start_here()
function just to check your setup?
Will check the rest when I come back from vacation.
Not sure what's going on here because I have git configured already and have been pushing/pulling from this computer the last couple of days.
It gives me an error about use_git_config
(although it's already been done), when I do it again it fails again:
> starters::start_here()
Checking GitHub account can be guessed...
β Your GitHub username is moldach.
Checking git is installed...
β git seems to be installed!
Checking gitconfig...
β gitconfig not set yet. Use this code (copied to clipboard): use_git_config(user.name = 'Jane Doe', user.email = 'jane@example.com')
Error: Set your gitconfig then run starters::start_here() again.
In addition: Warning message:
In names(git2r::config()$global) == c("user.email", "user.name") :
Show Traceback
Rerun with Debug
Error: Set your gitconfig then run starters::start_here() again.
> use_git_config(user.name = 'Matthew J. Oldach', user.email = 'moldach@ucalgary.ca')
> start_here()
Checking GitHub account can be guessed...
β Your GitHub username is moldach.
Checking git is installed...
β git seems to be installed!
Checking gitconfig...
β gitconfig not set yet. Use this code (copied to clipboard): use_git_config(user.name = 'Jane Doe', user.email = 'jane@example.com')
Error: Set your gitconfig then run starters::start_here() again.
In addition: Warning message:
In names(git2r::config()$global) == c("user.email", "user.name") :
Show Traceback
Rerun with Debug
Error: Set your gitconfig then run starters::start_here() again.
P.S. FYI the start::here()
function wasn't exported when I installed so I sourced it locally
Oh sorry. What does git2r::config()$global
return?
It returns the same information for my Name
and Public email
(on Github personal settings) or as git config --global user.email
or git config --global user.name
, with the addition of the credential.helper = wincred
field:
> git2r::config()$global
$credential.helper
[1] "wincred"
$user.email
[1] "moldach@ucalgary.ca"
$user.name
[1] "Matthew J. Oldach"
@moldach I don't think the error is at the GitHub token stage but a bit later and I'm trying to find out exactly where. In any of your working RStudio projects with a git repo could you run
library(git2r)
repo = repository(".")
and see whether you get the same error message?
It looks a bit like https://github.com/ropensci/git2r/issues/334 so we shall see.
oh now I can reproduce the bug :dancer:
@moldach I've made a PR to travis
, it was merged so please re-install it.
devtools::install_github("ropenscilabs/travis")
things should work... at least until the next error message! :wink: Thanks again for the bug report. I'll look into start_here()
now.
@moldach now start_here()
1) is exported 2) should work.
Another question, can I add you as a contributor ("ctb") of this package? Your bug reports have been most helpful.
Awesome, everything ran smoothly! starters::start_here()
was exported and finished with an All set now!
π
Next I ran starters::create_analysis_project()
and this time when it's expecting the PAT to appear on clipboard it detected it, added travis build status badge to README.Rmd
and made the skeleton of the project.
Not sure if the very last part is the desired result though? It seems to have set the active project to my root and not the project I created which would happen if you created a new project through RStudioπ€
β Adding '^tic\\.R$' to '.Rbuildignore'
Authenticating with GitHub
Waiting for authentication in browser...
Press Esc/Ctrl + C to abort
Authentication complete.
Finished adding deploy keys on GitHub for repo moldach/spikesProject.
Successfully added public deploy key 'travis+tic' to GitHub for moldach/spikesProject. You should receive a confirmation e-mail from GitHub. Delete the key in the repository's settings to revoke access for that key or when you no longer need it.
Finished adding private environment variable id_rsa to moldach/spikesProject on Travis CI.
Successfully added private deploy key to moldach/spikesProject as secure environment variable id_rsa to Travis CI.
Create a personal access token, make sure that you are signed in as the correct user. The suggested description 'travis+tic for moldach/spikesProject' has been copied to the clipboard. If you use this token only to avoid GitHub's rate limit, you can leave all scopes unchecked. Then, copy the new token to the clipboard, it will be detected and applied automatically. Please visit
https://github.com/settings/tokens/new
A browser window will be opened.
Waiting for PAT to appear on the clipboard.
Detected PAT, clearing clipboard.
Finished adding private environment variable GITHUB_PAT to moldach/spikesProject on Travis CI.
β Adding Travis build status badge to 'README.Rmd'
β Re-knit 'README.Rmd'
β Setting active project to 'C:/Users/Matthew/Documents'
Another question, can I add you as a contributor ("ctb") of this package? Your bug reports have been most helpful.
Yes please, and thank you very much.
I'll try out a few of the other functions (i.e. create_basic_project()
, create_package_project()
, create_training_project()
,) to see if they work as well.
I noticed from the createBasicProject.R
script this line of code:
#' @describeIn createPackageProject aesthetic addition for continuity purposes
create_package_project = createPackageProject
Mind me asking what the point of making two functions do the same thing? Is this for people who like the _
syntax versus camelCase
, or for another reason?
:wave: @moldach!
Regarding the active project, it's because the new project is created elsewhere. Whilst setting it up we need to set the active project to the new project, in the console where you have your current project, so after setting it up we re-set the active project to the initial project. To open the new project you'd open a new RStudio session. If you think a feature to open the new project afterwards would be useful, can you open a new issue (or make a PR)? It'd be an argument for all 4 creation functions,open
, FALSE
by default, and when it is TRUE
we'd get
if(open){
rstudioapi::openProject(file.path(folder, name), newSession=TRUE)
}
I've now added you as ctb
. :-)
Exactly, we have added the new functions with snake case names for folks who prefer that.
Hello again, Thought I'd give the package another try. New error message further along now π
After the browser opens a window on my github to create new personal access token since the recommended description,
travis+tic for moldach/freshPrince
, was copied to my clipboard I Ctrl+V that into the field and generate the token (no scope boxes selected; I'm not sure what scopes are and am ignorant of rate limits).It opens a new browser window saying
The token has an icon with what I can only assume to be a clipboard with an arrow. I clicked this and get the resulting error:
Thank you