git_upload | R Documentation |
Upload module to a git-based code-sharing service. Initiate a git repo, add core module files, commit and push to remote.
git_upload(flpth, username, service = c("github", "gitlab", "bitbucket"))
flpth |
File path to module. |
username |
Username for code-sharing service. |
service |
Code-sharing service |
Remote URL is determined to be: code sharing URL + username + R package name. Git must be configured on a user's system before this function can be run.
Logical
Other git:
remote_git_exists()
# Git must be configured before function can be run. # To configure, provide your name and email via the command-line, e.g. # git config --global user.name "John Doe" # git config --global user.email johndoe@example.com # To check your username and email, try: # git config --list # NOT RUN # # construct a simple module # module_path <- module_skeleton(program_name = 'echo', flpth = getwd()) # module_check(flpth = module_path) # module_identities(flpth = module_path) # # after these steps all files are built, to upload to git use: # git_upload(flpth = module_path, username = '[YOUR USERNAME]', # service = '[SERVICE]')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.