Skip to content

Commit 7d6218f

Browse files
authored
Dependency fix (#10)
Fixing the dependcy issues. Planning to drop `Suggests` for `SWATfarmR`, `Rdpack`, and `euptf2` soon.
1 parent 5dc5508 commit 7d6218f

File tree

3 files changed

+15
-17
lines changed

3 files changed

+15
-17
lines changed

DESCRIPTION

+12-9
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
Type: Package
22
Package: miljotools
3-
Title: An R package hosting a variety of useful functions for environmental data handling and anaylsis
3+
Title: An R package hosting a variety of useful functions for
4+
environmental data handling and anaylsis
45
Version: 0.3.1
56
Author: Moritz Shore
67
Maintainer: Moritz Shore <[email protected]>
7-
Description: A few useful functions for environemental data processing and analysis.
8+
Description: A few useful functions for environemental data processing and
9+
analysis.
810
License: GPL (>= 3)
911
URL: https://moritzshore.github.io/miljotools/
1012
BugReports: https://github.com/moritzshore/miljotools/issues
11-
Language: English
1213
Depends:
1314
R (>= 4.0)
1415
Imports:
@@ -27,21 +28,23 @@ Imports:
2728
readxl,
2829
sf,
2930
stringr,
30-
euptf2,
31-
SWATprepR,
3231
utils,
3332
writexl
34-
Remotes:
35-
github::tkdweber/euptf2
36-
github::biopsichas/SWATprepR
3733
Suggests:
3834
devtools,
35+
euptf2,
3936
knitr,
37+
Rdpack,
4038
rmarkdown,
41-
roxygen2
39+
roxygen2,
40+
SWATprepR
4241
VignetteBuilder:
4342
knitr
43+
Remotes:
44+
github::biopsichas/SWATprepR,
45+
github::tkdweber/euptf2
4446
Encoding: UTF-8
47+
Language: English
4548
LazyData: true
4649
Roxygen: list(markdown = TRUE)
4750
RoxygenNote: 7.2.3

NAMESPACE

-4
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@ export(reanalysis3_daily)
66
export(reanalysis3_swatinput)
77
export(swat_weather_input_chain)
88
importFrom(RColorBrewer,brewer.pal)
9-
importFrom(SWATprepR,add_weather)
10-
importFrom(SWATprepR,load_template)
11-
importFrom(SWATprepR,prepare_climate)
12-
importFrom(SWATprepR,prepare_wgn)
139
importFrom(abind,abind)
1410
importFrom(crayon,blue)
1511
importFrom(crayon,green)

R/metnorenal3.R

+3-4
Original file line numberDiff line numberDiff line change
@@ -790,7 +790,6 @@ reanalysis3_daily <- function(path, outpath = NULL, verbose = FALSE, precision =
790790
#' @importFrom readr read_csv
791791
#' @importFrom stringr str_split str_remove
792792
#' @importFrom writexl write_xlsx
793-
#' @importFrom SWATprepR prepare_climate add_weather prepare_wgn load_template
794793
reanalysis3_swatinput <-
795794
function(path,
796795
swat_setup,
@@ -1000,9 +999,9 @@ reanalysis3_swatinput <-
1000999
# if it is null, then write just the climate files
10011000
if(verbose){cat(green(italic(("writing weather station files\n"))))}
10021001
SWATprepR::prepare_climate(meteo_lst,
1003-
swat_setup,
1004-
period_starts = start,
1005-
period_ends = end)
1002+
swat_setup,
1003+
period_starts = start,
1004+
period_ends = end)
10061005
}
10071006
}
10081007

0 commit comments

Comments
 (0)