Skip to content

Commit

Permalink
Merge pull request #24 from RobLBaker/main
Browse files Browse the repository at this point in the history
Version 0.0.1
  • Loading branch information
RobLBaker authored Sep 12, 2023
2 parents 3fcda6b + e804a0f commit 4f111bf
Show file tree
Hide file tree
Showing 19 changed files with 104 additions and 28 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: NPSdataverse
Title: Tools and Packages for Data and Metadata Manipulation
Version: 0.0.0.9
Version: 0.0.1
Authors@R: c(
person(given="Robert", family="Baker", email="[email protected]",
role = c("aut", "cre"),
Expand Down
8 changes: 8 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# NPSdatavers 0.0.1

2023-09-12

* updated version to be in line with forthcoming versioning guidance
* updated documentation to assist in install/updating
* updated updateR.R to tell the user not only when data packages are out of date but also when they are all up to date upon loading NPSdataverse.

# NPSdataverse 0.0.0.9000

* Added a `NEWS.md` file to track changes to the package.
15 changes: 14 additions & 1 deletion R/updateR.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@
#' @keywords internal
#'
.update_git_repos<-function(){
git_pkgs = c("NPSdataverse", "QCkit", "EMLeditor", "DPchecker", "NPSutils", "EMLassemblyline")
git_pkgs = c("NPSdataverse",
"QCkit",
"EMLeditor",
"DPchecker",
"NPSutils",
"EMLassemblyline")
pkg_update <- remotes::package_deps(git_pkgs, dependencies = c("Imports",
"Remotes",
"Suggests"))
Expand All @@ -30,6 +35,14 @@
cli::cat_line("\nClose R and Rstudio. Open a new R session and reload the NPSdataverse.")
cli::cat_line()
}
else{
load_header <- cli::rule(
left = cli::pluralize(
"All NPSdataverse packages are up to date."))
msg(load_header)
cli::cat_line()
}

}

#' Custom print function for github repos to update
Expand Down
28 changes: 26 additions & 2 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,33 @@ NPSdataverse will install the following R packages:
***
(R packages in **bold** are developed by NPS)

## Updating R packages
## Trouble shooting installation

Many of the NPSdataverse packages are in a phase of rapid development. NPSdataverse will check for new versions of the packages stored on gitub (all the packages except r/EML) each time you load NPSdataverse. If any of your packages are out of date, please follow the instructions to update them.
Each package within the NPSdataverse has a number of dependencies, most of which
are hosted on CRAN. During the initial install of NPSdataverse, you may be
prompted to install or update these dependencies. The initial installation can
take some time and require multiple iterative package updates/installs.
Depending on how they were initially installed, some dependent packages may fail
update or to install. In this case you can try running

``` r
.libPaths()
```
to find where your packages are located on your local machine. Navigate to that
location and delete the offending package. Then try to re-install.


## Updating NPSdataverse packages

Many of the NPSdataverse packages are in a phase of rapid development. When you
load the NPSdataverse (using `library(NPSdataverse)`), NPSdataverse will check
for new versions of the packages stored on GitHub (all the packages except
r/EML). NPSdataverse will tell you if all your packages are up to date.
Conversely if any of the NPSdataverse packages need to be updated, NPSdataverse
will indicate which packages need updating and how to perform the updates. If
you do not get any notices about whether your packages are up to date or not,
then the NPSdataverse package itself needs to be updated. See Installation for
instructions on how to update the NPSdataverse package.

## Creating data packages

Expand Down
33 changes: 28 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,36 @@ NPSdataverse will install the following R packages:

(R packages in **bold** are developed by NPS)

## Updating R packages
## Trouble shooting installation

Each package within the NPSdataverse has a number of dependencies, most
of which are hosted on CRAN. During the initial install of NPSdataverse,
you may be prompted to install or update these dependencies. The initial
installation can take some time and require multiple iterative package
updates/installs. Depending on how they were initially installed, some
dependent packages may fail update or to install. In this case you can
try running

``` r
.libPaths()
```

to find where your packages are located on your local machine. Navigate
to that location and delete the offending package. Then try to
re-install.

## Updating NPSdataverse packages

Many of the NPSdataverse packages are in a phase of rapid development.
NPSdataverse will check for new versions of the packages stored on gitub
(all the packages except r/EML) each time you load NPSdataverse. If any
of your packages are out of date, please follow the instructions to
update them.
When you load the NPSdataverse (using `library(NPSdataverse)`),
NPSdataverse will check for new versions of the packages stored on
GitHub (all the packages except r/EML). NPSdataverse will tell you if
all your packages are up to date. Conversely if any of the NPSdataverse
packages need to be updated, NPSdataverse will indicate which packages
need updating and how to perform the updates. If you do not get any
notices about whether your packages are up to date or not, then the
NPSdataverse package itself needs to be updated. See Installation for
instructions on how to update the NPSdataverse package.

## Creating data packages

Expand Down
2 changes: 1 addition & 1 deletion docs/404.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/LICENSE-text.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/LICENSE.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/articles/NPSdataverse.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/articles/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions docs/authors.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 11 additions & 3 deletions docs/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/news/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/pkgdown.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pandoc: 2.19.2
pandoc: 3.1.1
pkgdown: 2.0.6.9000
pkgdown_sha: 5bb671b1a8bac8e926479868681936f7c9ee41b3
articles:
NPSdataverse: NPSdataverse.html
last_built: 2023-05-02T17:51Z
last_built: 2023-09-12T22:27Z

2 changes: 1 addition & 1 deletion docs/reference/NPSdataverse_packages.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/detach_NPSdataverse.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/dot-print_cust_package_deps.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/dot-update_git_repos.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4f111bf

Please sign in to comment.