We can use usethis
to initialise empty client- and -serverside packages. You need to follow the steps below twice: once where 'path' contains the path to the server-side package and once with the path to the client-side package.
'Path' should be the directory on your local machine where you want to create the package, for example:
path <- "path/to/datashieldPackage"
create_package(path)
You can initialise Git version control within your package by opening the terminal within RStudio and typing:
git init
In order to sync your local repository with your remote repository, you need to add the url or your new repository. Click on the terminal within RStudio and type:
git remote add origin https://github.com/example-user/example-repo
Now repeat this process for the client-side package.