This commit is contained in:
hong-revo 2018-10-19 09:15:35 +11:00
Родитель 09cb786e02
Коммит 761cb09182
8 изменённых файлов: 51 добавлений и 4 удалений

Просмотреть файл

@ -4,3 +4,4 @@
\.Rproj$
\.Rxproj$
^\.Rproj\.user$
CONTRIBUTING.md

29
CONTRIBUTING.md Normal file
Просмотреть файл

@ -0,0 +1,29 @@
Contributions to **AzureVM** are welcome from anyone and are best sent as pull requests on [the GitHub repository](https://github.com/cloudyr/AzureVM/). This page provides some instructions to potential contributors about how to add to the package.
1. Contributions can be submitted as [a pull request](https://help.github.com/articles/creating-a-pull-request/) on GitHub by forking or cloning the [repo](https://github.com/cloudyr/AzureVM/), making changes and submitting the pull request.
2. The cloudyr project follows [a consistent style guide](http://cloudyr.github.io/styleguide/index.html) across all of its packages. Please refer to this when editing package code.
3. Pull requests should involve only one commit per substantive change. This means if you change multiple files (e.g., code and documentation), these changes should be committed together. If you don't know how to do this (e.g., you are making changes in the GitHub web interface) just submit anyway and the maintainer will clean things up.
4. All contributions must be submitted consistent with the package license ([MIT](https://opensource.org/licenses/MIT)).
5. Non-trivial contributions need to be noted in the `Authors@R` field in the [DESCRIPTION](https://github.com/cloudyr/AzureVM/blob/master/DESCRIPTION). Just follow the format of the existing entries to add your name (and, optionally, email address). Substantial contributions should also be noted in [`inst/CITATION`](https://github.com/cloudyr/AzureVM/blob/master/inst/CITATION).
6. The cloudyr project use royxgen code and documentation markup, so changes should be made to roxygen comments in the source code `.R` files. If changes are made, roxygen needs to be run. The easiest way to do this is a command line call to: `Rscript -e devtools::document()`. Please resolve any roxygen errors before submitting a pull request.
7. Please run `R CMD BUILD AzureVM` and `R CMD CHECK AzureVM_VERSION.tar.gz` before submitting the pull request to check for any errors.
Some specific types of changes that you might make are:
1. Bug fixes. Great!
2. Documentation-only changes (e.g., to Rd files, README, vignettes). This is great! All contributions are welcome.
3. New functionality. This is fine, but should be discussed on [the GitHub issues page](https://github.com/cloudyr/AzureVM/issues) before submitting a pull request.
3. Changes requiring a new package dependency should also be discussed on [the GitHub issues page](https://github.com/cloudyr/AzureVM/issues) before submitting a pull request.
4. Message translations. These are very appreciated! The format is a pain, but if you're doing this I'm assuming you're already familiar with it.
Any questions you have can be opened as GitHub issues or directed to hongooi (at) microsoft.com (for questions about this package) or thosjleeper (at) gmail.com (for questions about cloudyr in general).

Просмотреть файл

@ -1,6 +1,6 @@
Package: AzureVM
Title: Virtual Machines in Azure
Version: 0.1
Version: 0.9
Authors@R: c(
person("Hong", "Ooi", , "hongooi@microsoft.com", role = c("aut", "cre")),
person("Microsoft", role="cph")
@ -14,4 +14,4 @@ Imports:
R6,
AzureRMR
Roxygen: list(markdown=TRUE)
RoxygenNote: 6.0.1
RoxygenNote: 6.1.0

Просмотреть файл

@ -1,2 +1,4 @@
#' @import AzureRMR
NULL
globalVariables("self", "AzureVM")

Просмотреть файл

@ -26,7 +26,7 @@ NULL
#'
#' @rdname get_vm
#' @name get_vm
#' @aliases get_vm_cluster, list_vms
#' @aliases get_vm_cluster list_vms
#' @usage
#' get_vm(name, resource_group = name)
#' get_vm(name)

Просмотреть файл

15
inst/CITATION Normal file
Просмотреть файл

@ -0,0 +1,15 @@
citHeader("To cite package 'AzureVM' in publications use:")
year <- sub(".*(2[[:digit:]]{3})-.*", "\\1", meta$Date, perl = TRUE)
vers <- paste("R package version", meta$Version)
citEntry(entry="Manual",
title = "AzureVM: An R management interface to Azure virtual machines",
author = personList(as.person("Hong Ooi")),
year = year,
note = vers,
textVersion =
paste("Hong Ooi (",
year,
"). AzureRMR: An R management interface to Azure virtual machines. ",
vers, ".", sep=""))

Просмотреть файл

@ -2,7 +2,7 @@
% Please edit documentation in R/add_methods.R
\name{get_vm}
\alias{get_vm}
\alias{get_vm_cluster,}
\alias{get_vm_cluster}
\alias{list_vms}
\title{Get existing virtual machine(s)}
\usage{