Skip to content

Commit

Permalink
v1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kauedesousa committed Nov 9, 2023
1 parent 00f0521 commit 69415b2
Show file tree
Hide file tree
Showing 41 changed files with 1,504 additions and 1,074 deletions.
8 changes: 6 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: ClimMobTools
Type: Package
Title: API Client for the 'ClimMob' Platform
Version: 0.5.003
Version: 1.0
Authors@R: c(person("Kauê", "de Sousa",
email = "[email protected]",
role = c("aut", "cre"),
Expand All @@ -26,17 +26,21 @@ Depends: R (>= 3.5.0)
Imports:
httr,
jsonlite,
lpSolve,
Matrix,
methods,
RSpectra,
stats,
utils
Suggests:
climatrends,
gosset,
knitr,
nasapower,
rmarkdown,
sf,
PlackettLuce,
testthat (>= 2.1.0)
Language: en-GB
Language: en-US
RoxygenNote: 7.2.1
VignetteBuilder: knitr
2 changes: 2 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,7 @@ importFrom(httr,RETRY)
importFrom(httr,accept_json)
importFrom(httr,content)
importFrom(jsonlite,fromJSON)
importFrom(lpSolve,lp)
importFrom(methods,as)
importFrom(stats,runif)
importFrom(utils,tail)
8 changes: 8 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
ClimMobTools 1.0 (2023-11-10)
=========================

### BUG FIXES

* Fix an issue in `randomize()` to allocate blocks


ClimMobTools 0.4.6 (2022-08-11)
=========================

Expand Down
22 changes: 18 additions & 4 deletions R/AAA-getDataCM.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,22 @@
#' # This function only works with an API key
#' # the API key can be obtained once a free ClimMob account
#' # is created via https://climmob.net/
#'
#' library("ClimMobTools")
#' my_key <- "ff05a174-28d0-4a40-ab5a-35dc486133a6"
#'
#' my_key <- "92cec84d-44f5-4858-9ef0-bd872496311c"
#' getDataCM(key = my_key,
#' project = "beanaru23",
#' userowner = "student",
#' server = "1000farms")
#'
#' # get in the wide format
#'
#' getDataCM(key = my_key,
#' project = "testmark",
#' userowner = "kauedesousa",
#' server = "testing")
#' project = "beanaru23",
#' userowner = "student",
#' server = "1000farms",
#' pivot.wider = TRUE)
#'
#' @seealso ClimMob website \url{https://climmob.net/}
#' @importFrom httr accept_json content RETRY
Expand Down Expand Up @@ -87,3 +96,8 @@ getDataCM <- function(key,
return(cmdata)

}





11 changes: 6 additions & 5 deletions R/getProjectProgress.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@
#' # This function only works with an API key
#' # the API key can be obtained once a free ClimMob account
#' # is created via https://climmob.net/
#'
#' my_key <- "92cec84d-44f5-4858-9ef0-bd872496311c"
#'
#' library("ClimMobTools")
#' my_key <- "ff05a174-28d0-4a40-ab5a-35dc486133a6"
#'
#' getProjectProgress(key = my_key,
#' project = "testmark",
#' userowner = "kauedesousa",
#' server = "testing")
#' project = "beanaru23",
#' userowner = "student",
#' server = "1000FARMS")
#'
#'
#' @seealso ClimMob website \url{https://climmob.net/}
Expand Down
4 changes: 2 additions & 2 deletions R/getProjectsCM.R
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@
#' # the API key can be obtained once a free ClimMob account
#' # is created via https://climmob.net/
#'
#' my_key <- "92cec84d-44f5-4858-9ef0-bd872496311c"
#' my_key <- "ff05a174-28d0-4a40-ab5a-35dc486133a6"
#'
#' getProjectsCM(key = my_key, server = "testing")
#' getProjectsCM(key = my_key, server = "1000FARMS")
#'
#' @seealso ClimMob website \url{https://climmob.net/}
#' @export
Expand Down
Loading

0 comments on commit 69415b2

Please sign in to comment.