Skip to content

Commit

Permalink
Increase package version and resubmit
Browse files Browse the repository at this point in the history
- Since the package has been approved by CRAN, the CRAN-RELEASE file
  should be removed. A commit should be tagged with the version number,
  0.0.1.
- Update version number in DESCRIPTION file.
- Add change details in user friendly format to NEWS.md.
- Correct spelling errors in README.Rmd.
- Set development mode of package to release in pkgdown config file.
- Test package on different platforms and update cran-comments.md.
- Remove the non-standard characters from the example in data-cleaner.R.
- Rebuild pkgdown website.
  • Loading branch information
pakjiddat committed Jun 19, 2021
1 parent 1e84f56 commit dfb6f96
Show file tree
Hide file tree
Showing 36 changed files with 234 additions and 142 deletions.
4 changes: 2 additions & 2 deletions CRAN-RELEASE
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
This package was submitted to CRAN on 2021-06-11.
Once it is accepted, delete this file and tag the release (commit 40778a5).
This package was submitted to CRAN on 2021-06-18.
Once it is accepted, delete this file and tag the release (commit 021eb41).
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: wordpredictor
Title: Develop Text Prediction Models Based on N-Grams
Version: 0.0.1
Version: 0.0.2
URL: https://github.com/pakjiddat/word-predictor, https://pakjiddat.github.io/word-predictor/
BugReports: https://github.com/pakjiddat/word-predictor/issues
Authors@R:
Expand Down
13 changes: 12 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
# wordpredictor 0.0.2

## Bug fixes

* Fixed small bugs that were causing problems with GitHub actions and CRAN checks.
* Removed custom `.Rprofile` file as it was causing problems with GitHub actions.
* Updated sample code in `features.Rmd` vignette so it does not cause issues with R CMD Check on MacOs.
* Removed `inst/extdata folder` from `.gitignore` since it was causing problems with check-standard workflow on GitHub.
* Removed non-standard characters from example in data-cleaner.R file as they were causing problems with CRAN check on "Debian Linux, R-devel, clang".
* Issues related to the bug fixes: [#318](https://github.com/r-lib/actions/issues/318), [#319](https://github.com/r-lib/actions/issues/319), [#320](https://github.com/r-lib/actions/issues/320)

# wordpredictor 0.0.1

- Initial Release
* Initial Release.
12 changes: 6 additions & 6 deletions R/data-cleaner.R
Original file line number Diff line number Diff line change
Expand Up @@ -156,13 +156,13 @@ DataCleaner <- R6::R6Class(
#' ve <- 0
#' # Test data is read
#' l <- c(
#' "If you think Im wrong, send me a link to where its happened",
#' "Were about 90percent done with this room",
#' "This isnt how I wanted it between us.",
#' "Almost any cute breed can become ornamental",
#' "Once upon a time there was a kingdom with a castle",
#' "If you think I'm wrong, send me a link to where it's happened",
#' "We're about 90percent done with this room",
#' "This isn't how I wanted it between us.",
#' "Almost any cute breed can become ornamental",
#' "Once upon a time there was a kingdom with a castle",
#' "That's not a thing any of us are granted'",
#' "Why are you being so difficult? she asks."
#' "Why are you being so difficult? she asks."
#' )
#' # The expected results
#' res <- c(
Expand Down
12 changes: 6 additions & 6 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ mg <- ModelGenerator$new(
# Generates n-gram model. The output is the file def-model.RDS
mg$generate_model()
# The test envionment is cleaned up
# The test environment is cleaned up
clean_up(ve)
```

Expand All @@ -146,7 +146,7 @@ mp <- ModelPredictor$new(mf = mfn)
# next words are returned along with their respective probabilities.
res <- mp$predict_word(words = "how are", 3)
# The test envionment is cleaned up
# The test environment is cleaned up
clean_up(ve)
```

Expand Down Expand Up @@ -177,7 +177,7 @@ df <- da$plot_n_gram_stats(opts = list(
"dir" = NULL
))
# The test envionment is cleaned up
# The test environment is cleaned up
clean_up(ve)
```

Expand All @@ -202,7 +202,7 @@ df <- da$plot_n_gram_stats(opts = list(
"dir" = NULL
))
# The test envionment is cleaned up
# The test environment is cleaned up
clean_up(ve)
```

Expand All @@ -226,7 +226,7 @@ df <- df[order(df$freq, decreasing = T),]
# The frequency of the bi-gram "great_deal"
f <- as.numeric(df[df$pre == "great_deal", "freq"])
# The test envionment is cleaned up
# The test environment is cleaned up
clean_up(ve)
```

Expand Down Expand Up @@ -310,7 +310,7 @@ me <- ModelEvaluator$new(mf = mfn, ve = 2)
# a data frame and also saved within the model file itself.
stats <- me$evaluate_performance(lc = 20, fn = vfn)
# The test envionment is cleaned up
# The test environment is cleaned up
clean_up(ve)
```

Expand Down
2 changes: 1 addition & 1 deletion _pkgdown.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
url: https://pakjiddat.github.io/word-predictor
title: Word Predictor
development:
mode: unreleased
mode: release
11 changes: 7 additions & 4 deletions cran-comments.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@

- local, ubuntu 20.04.2, R 3.6.3
- github actions, macos-latest, R release
- rhub, solaris x86, R patched-ods
- rhub, windows-x86_64, R release
- rhub, ubuntu-gcc, R release
- rhub, fedora-clang, R devel
- github actions, windows-latest, R release
- github actions, ubuntu 20.04, R devel
- github actions, ubuntu 20.04, R release
- rhub, debian-clang-devel, R devel
- rhub, fedora-clang-devel, R devel
- rhub, solaris-x86-patched, R release
- rhub, macos-highsierra-release, R release
- winbuilder, windows, R devel

## R CMD check results
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.

Loading

0 comments on commit dfb6f96

Please sign in to comment.