View source: R/Initialiselepaquet.R
Initialisalepaquet | R Documentation |
creates the .git initial folder on the machine
Initialisalepaquet( paquet, remoterepohostingplatform = "github.com", account, user.name = NULL, user.email = NULL )
remoterepohostingplatform |
: character string. Indicates the remote repo hosting platform. "github.com" or "gitlab.com" for example |
account |
: character string the command line will be 'paste0("git remote add origin git@",remoterepohostingplatform,":",account,"/",paquet,".git") |
user.name |
: character string . if not NULL, and init=TRUE, system(paste0('git config user.name "',user.name,'"') |
user.email |
: character string . if not NULL, and init=TRUE, system(paste0('git config user.email "',user.email,'"')) |
paquet: |
the package name. |
gitaccount |
: by default paste0(remoterepohostingplatform,":",account) |
Running [Initialisalepaquet(paquet="XXX", remoterepohostingplatform="github.com", account="Tata", user.name="Tata Tutu", user.email="TataTutu@toto.com")] is equivalent of executing in the working directory: git init git confing user.name "Tata Tutu" git confing user.email "Tata@gmail.com" git init git remote add origin git@github.com:Tata/XXX.git
nothing
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.