Skip to content

Commit

Permalink
fixed unit test p_version
Browse files Browse the repository at this point in the history
  • Loading branch information
trinker committed Jun 13, 2015
1 parent b701752 commit e69d657
Show file tree
Hide file tree
Showing 39 changed files with 57 additions and 40 deletions.
4 changes: 3 additions & 1 deletion NAMESPACE
@@ -1,4 +1,4 @@
# Generated by roxygen2 (4.1.1): do not edit by hand
# Generated by roxygen2 (4.1.0): do not edit by hand

S3method(print,search_any)
S3method(print,wide_table)
Expand Down Expand Up @@ -48,6 +48,8 @@ export(p_unlock)
export(p_up)
export(p_update)
export(p_ver)
export(p_ver_cran)
export(p_version)
export(p_version_cran)
export(p_vign)
export(p_vignette)
2 changes: 1 addition & 1 deletion man/p_author.Rd
@@ -1,4 +1,4 @@
% Generated by roxygen2 (4.1.1): do not edit by hand
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/p_author.R
\name{p_author}
\alias{p_author}
Expand Down
2 changes: 1 addition & 1 deletion man/p_base.Rd
@@ -1,4 +1,4 @@
% Generated by roxygen2 (4.1.1): do not edit by hand
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/p_base.R
\name{p_base}
\alias{p_base}
Expand Down
2 changes: 1 addition & 1 deletion man/p_boot.Rd
@@ -1,4 +1,4 @@
% Generated by roxygen2 (4.1.1): do not edit by hand
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/p_boot.R
\name{p_boot}
\alias{p_boot}
Expand Down
2 changes: 1 addition & 1 deletion man/p_citation.Rd
@@ -1,4 +1,4 @@
% Generated by roxygen2 (4.1.1): do not edit by hand
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/p_citation.R
\name{p_citation}
\alias{p_citation}
Expand Down
2 changes: 1 addition & 1 deletion man/p_cran.Rd
@@ -1,4 +1,4 @@
% Generated by roxygen2 (4.1.1): do not edit by hand
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/p_cran.R
\name{p_cran}
\alias{p_cran}
Expand Down
2 changes: 1 addition & 1 deletion man/p_data.Rd
@@ -1,4 +1,4 @@
% Generated by roxygen2 (4.1.1): do not edit by hand
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/p_data.R
\name{p_data}
\alias{p_data}
Expand Down
2 changes: 1 addition & 1 deletion man/p_delete.Rd
@@ -1,4 +1,4 @@
% Generated by roxygen2 (4.1.1): do not edit by hand
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/p_delete.R
\name{p_delete}
\alias{p_del}
Expand Down
2 changes: 1 addition & 1 deletion man/p_depends.Rd
@@ -1,4 +1,4 @@
% Generated by roxygen2 (4.1.1): do not edit by hand
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/p_depends.R
\name{p_depends}
\alias{p_depends}
Expand Down
2 changes: 1 addition & 1 deletion man/p_detectOS.Rd
@@ -1,4 +1,4 @@
% Generated by roxygen2 (4.1.1): do not edit by hand
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/p_detectOS.R
\name{p_detectOS}
\alias{p_detectOS}
Expand Down
2 changes: 1 addition & 1 deletion man/p_exists.Rd
@@ -1,4 +1,4 @@
% Generated by roxygen2 (4.1.1): do not edit by hand
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/p_exists.R
\name{p_exists}
\alias{p_exists}
Expand Down
2 changes: 1 addition & 1 deletion man/p_extract.Rd
@@ -1,4 +1,4 @@
% Generated by roxygen2 (4.1.1): do not edit by hand
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/p_extract.R
\name{p_extract}
\alias{p_extract}
Expand Down
2 changes: 1 addition & 1 deletion man/p_functions.Rd
@@ -1,4 +1,4 @@
% Generated by roxygen2 (4.1.1): do not edit by hand
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/p_functions.R
\name{p_functions}
\alias{p_functions}
Expand Down
2 changes: 1 addition & 1 deletion man/p_help.Rd
@@ -1,4 +1,4 @@
% Generated by roxygen2 (4.1.1): do not edit by hand
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/p_help.R
\name{p_help}
\alias{p_help}
Expand Down
2 changes: 1 addition & 1 deletion man/p_information.Rd
@@ -1,4 +1,4 @@
% Generated by roxygen2 (4.1.1): do not edit by hand
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/p_information.R
\name{p_information}
\alias{p_info}
Expand Down
2 changes: 1 addition & 1 deletion man/p_install.Rd
@@ -1,4 +1,4 @@
% Generated by roxygen2 (4.1.1): do not edit by hand
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/p_install.R
\name{p_install}
\alias{p_get}
Expand Down
2 changes: 1 addition & 1 deletion man/p_install_gh.Rd
@@ -1,4 +1,4 @@
% Generated by roxygen2 (4.1.1): do not edit by hand
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/p_install_gh.R
\name{p_install_gh}
\alias{p_install_gh}
Expand Down
2 changes: 1 addition & 1 deletion man/p_install_version.Rd
@@ -1,4 +1,4 @@
% Generated by roxygen2 (4.1.1): do not edit by hand
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/p_install_version.R
\name{p_install_version}
\alias{p_install_version}
Expand Down
2 changes: 1 addition & 1 deletion man/p_interactive.Rd
@@ -1,4 +1,4 @@
% Generated by roxygen2 (4.1.1): do not edit by hand
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/p_interactive.R
\name{p_interactive}
\alias{p_inter}
Expand Down
2 changes: 1 addition & 1 deletion man/p_isinstalled.Rd
@@ -1,4 +1,4 @@
% Generated by roxygen2 (4.1.1): do not edit by hand
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/p_isinstalled.R
\name{p_isinstalled}
\alias{p_isinstalled}
Expand Down
2 changes: 1 addition & 1 deletion man/p_library.Rd
@@ -1,4 +1,4 @@
% Generated by roxygen2 (4.1.1): do not edit by hand
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/p_library.R
\name{p_library}
\alias{p_lib}
Expand Down
2 changes: 1 addition & 1 deletion man/p_load.Rd
@@ -1,4 +1,4 @@
% Generated by roxygen2 (4.1.1): do not edit by hand
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/p_load.R
\name{p_load}
\alias{p_load}
Expand Down
2 changes: 1 addition & 1 deletion man/p_load_gh.Rd
@@ -1,4 +1,4 @@
% Generated by roxygen2 (4.1.1): do not edit by hand
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/p_load_gh.R
\name{p_load_gh}
\alias{p_load_gh}
Expand Down
2 changes: 1 addition & 1 deletion man/p_loaded.Rd
@@ -1,4 +1,4 @@
% Generated by roxygen2 (4.1.1): do not edit by hand
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/p_loaded.R
\name{p_loaded}
\alias{p_isloaded}
Expand Down
2 changes: 1 addition & 1 deletion man/p_news.Rd
@@ -1,4 +1,4 @@
% Generated by roxygen2 (4.1.1): do not edit by hand
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/p_news.R
\name{p_news}
\alias{p_news}
Expand Down
2 changes: 1 addition & 1 deletion man/p_opendir.Rd
@@ -1,4 +1,4 @@
% Generated by roxygen2 (4.1.1): do not edit by hand
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/p_opendir.R
\name{p_opendir}
\alias{p_opendir}
Expand Down
2 changes: 1 addition & 1 deletion man/p_path.Rd
@@ -1,4 +1,4 @@
% Generated by roxygen2 (4.1.1): do not edit by hand
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/p_path.R
\name{p_path}
\alias{p_path}
Expand Down
2 changes: 1 addition & 1 deletion man/p_search_any.Rd
@@ -1,4 +1,4 @@
% Generated by roxygen2 (4.1.1): do not edit by hand
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/p_search_any.R
\name{p_search_any}
\alias{p_sa}
Expand Down
2 changes: 1 addition & 1 deletion man/p_search_library.Rd
@@ -1,4 +1,4 @@
% Generated by roxygen2 (4.1.1): do not edit by hand
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/p_search_library.R
\name{p_search_library}
\alias{p_search_library}
Expand Down
2 changes: 1 addition & 1 deletion man/p_set_cranrepo.Rd
@@ -1,4 +1,4 @@
% Generated by roxygen2 (4.1.1): do not edit by hand
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/p_set_cranrepo.R
\name{p_set_cranrepo}
\alias{p_set_cranrepo}
Expand Down
2 changes: 1 addition & 1 deletion man/p_temp.Rd
@@ -1,4 +1,4 @@
% Generated by roxygen2 (4.1.1): do not edit by hand
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/p_temp.R
\name{p_temp}
\alias{p_temp}
Expand Down
2 changes: 1 addition & 1 deletion man/p_unload.Rd
@@ -1,4 +1,4 @@
% Generated by roxygen2 (4.1.1): do not edit by hand
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/p_unload.R
\name{p_unload}
\alias{p_unload}
Expand Down
2 changes: 1 addition & 1 deletion man/p_unlock.Rd
@@ -1,4 +1,4 @@
% Generated by roxygen2 (4.1.1): do not edit by hand
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/p_unlock.R
\name{p_unlock}
\alias{p_unlock}
Expand Down
2 changes: 1 addition & 1 deletion man/p_update.Rd
@@ -1,4 +1,4 @@
% Generated by roxygen2 (4.1.1): do not edit by hand
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/p_update.R
\name{p_update}
\alias{p_up}
Expand Down
19 changes: 17 additions & 2 deletions man/p_version.Rd
@@ -1,26 +1,41 @@
% Generated by roxygen2 (4.1.1): do not edit by hand
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/p_version.R
\name{p_version}
\alias{p_ver}
\alias{p_ver_cran}
\alias{p_version}
\alias{p_version_cran}
\title{Package Version}
\usage{
p_version(package = "R")

p_ver(package = "R")

p_version_cran(package = "R")

p_ver_cran(package = "R")
}
\arguments{
\item{package}{Name of package (default returns R version).}
}
\description{
Determine what version a package is in your library.
\code{p_version} - Determine what version a package is in your library.

\code{p_version_cran} - Determine what version a package is on CRAN.
}
\examples{
\dontrun{
p_ver()
p_version()
p_ver(pacman)
p_version(pacman)

p_ver_cran()
p_ver_cran(pacman)

## Compare local to CRAN version
p_ver(pacman) == p_ver_cran(pacman)
p_ver(pacman) > p_ver_cran(pacman)
}
}
\seealso{
Expand Down
2 changes: 1 addition & 1 deletion man/p_vignette.Rd
@@ -1,4 +1,4 @@
% Generated by roxygen2 (4.1.1): do not edit by hand
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/p_vignette.R
\name{p_vignette}
\alias{p_vign}
Expand Down
2 changes: 1 addition & 1 deletion man/print.search_any.Rd
@@ -1,4 +1,4 @@
% Generated by roxygen2 (4.1.1): do not edit by hand
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/p_search_any.R
\name{print.search_any}
\alias{print.search_any}
Expand Down
2 changes: 1 addition & 1 deletion man/print.wide_table.Rd
@@ -1,4 +1,4 @@
% Generated by roxygen2 (4.1.1): do not edit by hand
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/p_data.R
\name{print.wide_table}
\alias{print.wide_table}
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-p_version.R
Expand Up @@ -2,6 +2,6 @@ context("Checking p_version")

test_that("p_version works",{
require(lattice)
expect_equal(p_version(), R.Version()[["version.string"]])
expect_equal(p_version(), getRversion())
expect_true(p_ver("lattice") >= "0.20.29")
})

0 comments on commit e69d657

Please sign in to comment.