File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,7 +7,9 @@ Authors@R: c(
77Description: What the package does (one paragraph).
88License: MIT + file LICENSE
99Imports:
10- magrittr, rgee, reticulate
10+ rgee, reticulate,
11+ magrittr,
12+ crayon
1113Suggests:
1214 testthat (>= 3.0.0)
1315Config/testthat/edition: 3
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ export(ee_systemtime)
2626export(ee_timeend)
2727export(ee_timestart)
2828export(ee_yday)
29+ export(fprintf)
2930export(getInfo)
3031export(getInfo2)
3132export(image_size)
@@ -34,3 +35,4 @@ export(use_backend)
3435import(crayon)
3536import(magrittr)
3637import(rgee)
38+ importFrom(utils,str)
Original file line number Diff line number Diff line change @@ -27,9 +27,9 @@ ee_auth_ci <- function(token = NULL) {
2727 reticulate :: source_python(ci_auth )
2828
2929 if (is.null(token )) {
30- token = os .getenv(" EARTHENGINE_TOKEN" )
30+ token = Sys .getenv(" EARTHENGINE_TOKEN" )
3131 }
32- auto_Initialize(token )
32+ auto_Initialize(token ) # # defined in ci_auth.py
3333 print(" ee_auth_ci: Authentication successful!" )
3434}
3535
Original file line number Diff line number Diff line change 11# ' @import crayon rgee
22# ' @import magrittr
3+ # ' @importFrom utils str
34# ' @keywords internal
45" _PACKAGE"
56
Original file line number Diff line number Diff line change 1+ # ' @export
2+ fprintf <- function (... ) cat(sprintf(... ))
3+
4+
15# ' @title rgee `imgcol` tools collection
26# ' @name ee_tools
37NULL
Original file line number Diff line number Diff line change 55# Learn more about the roles of various files in:
66# * https://r-pkgs.org/tests.html
77# * https://testthat.r-lib.org/reference/test_package.html#special-files
8+ library(rgeeLite )
9+ library(rgee )
10+ library(testthat )
811
9- fprintf <- function (... ) cat(sprintf(... ))
1012
1113if (Sys.getenv(" GITHUB_ACTIONS" ) == " true" ) {
1214 fprintf(" RETICULATE_PYTHON: %s\n " , Sys.getenv(" RETICULATE_PYTHON" ))
1315
1416 Sys.setenv(RETICULATE_PYTHON = Sys.which(" python" )) # Set Python interpreter
1517 reticulate :: use_python(Sys.which(" python" )) # double confirm
1618
17- rgeeLite :: ee_auth_ci()
19+ ee_auth_ci()
1820} else {
19- rgeeLite :: ee_Init() # Initialize rgeeLite
21+ ee_Init() # Initialize rgeeLite
2022}
2123
22- library(testthat )
23- library(rgee )
24- library(rgeeLite )
2524
2625test_check(" rgeeLite" )
You can’t perform that action at this time.
0 commit comments