USGS-R / RSPARROW

A system of R scripts and functions for executing and evaluating SPARROW surface water-quality models that generates graphical, map, and tabular output.
Other
25 stars 13 forks source link

warning message #4

Open juanjocabj opened 4 years ago

juanjocabj commented 4 years ago

hi! my name is Juan, a student learning R code. pretty new in this science.

After opening the sparrow_control.R script in Rstudio, I received this

source('C:/juanjo/rsparrow-master/UserTutorial/results/sparrow_control.R') RSPARROW dependent package installation COMPLETE Loading RSPARROW

Error: Dependency package(s) 'gplots' not available.
Run `rlang::last_error()` to see where the error occurred.
In addition: Warning message:
In (function (dep_name, dep_ver = "*")  :
Dependency package 'gplots' not available.

Any idea about where is the error?

I really appreciate any help, thanks!

LihaoDuan commented 3 years ago

Hi, i am s student learning RSPARROW model , but when I run the model , reminds me a error 'no "set.ZeroPolicyOption" function'.

But when I find set.ZeroPolicyOption function in "./RSPARROW_master/R" folder, I can't found any R scripts have this functions. I use windows10 and R 3.5.0

Can you give me some advice ,thanks!

Computing NLLS metrics...
Computing Hessian standard errors for parameter estimates...
   Seconds elapsed in Hessian execution... 7.08
Running diagnostic plots and sensitivity analysis...
Running summary predictions...
Running diagnostic spatial autocorrelation...
Quitting from lines 23-100 (diagnosticSpatialAutoCorr.Rmd) 
Error in set.ZeroPolicyOption(TRUE) : no "set.ZeroPolicyOption" function
RSPARROW SYSTEM ERROR OCCURRED
To reset user options in R use options(backupOptions)
Caiyy19 commented 2 years ago

hi! my name is Juan, a student learning R code. pretty new in this science.

After opening the sparrow_control.R script in Rstudio, I received this

source('C:/juanjo/rsparrow-master/UserTutorial/results/sparrow_control.R') RSPARROW dependent package installation COMPLETE Loading RSPARROW

Error: Dependency package(s) 'gplots' not available.
Run `rlang::last_error()` to see where the error occurred.
In addition: Warning message:
In (function (dep_name, dep_ver = "*")  :
  Dependency package 'gplots' not available.

Any idea about where is the error?

I really appreciate any help, thanks!

try to run the following code before run source: install.packages("gplots") library(gplots) may it will work

Caiyy19 commented 2 years ago

When I use this model, I recieved this:

Running correlations among explanatory variables... Error in complete.cases(x.neg, x.pos, y.neg, y.pos) : can't find 'x.neg'

Any idea about where is the error?

I really appreciate any help, thanks!

VincentYang147 commented 1 year ago

When I use this model, I recieved this:

Running correlations among explanatory variables... Error in complete.cases(x.neg, x.pos, y.neg, y.pos) : can't find 'x.neg'

Any idea about where is the error?

I really appreciate any help, thanks!

I have met the same error, do you have any progresses on resolving it ?!

zingzxyang commented 1 year ago

When I use this model, I recieved this:

Running correlations among explanatory variables... Error in complete.cases(x.neg, x.pos, y.neg, y.pos) : can't find 'x.neg'

Any idea about where is the error?

I really appreciate any help, thanks!

I also encountered the same error, have you solved this problem yet?

EatingKLM commented 7 months ago

Hi, i am s student learning RSPARROW model , but when I run the model , reminds me a error 'no "set.ZeroPolicyOption" function'.嗨,我是学习RSPARROW模型的学生,但是当我运行模型时,提醒我一个错误“没有”设置。ZeroPolicyOption“函数”。

But when I find set.ZeroPolicyOption function in "./RSPARROW_master/R" folder, I can't found any R scripts have this functions.但是当我发现设置时。“./RSPARROW_master/R”文件夹中的 ZeroPolicyOption 函数,我找不到任何 R 脚本具有此函数。 I use windows10 and R 3.5.0我使用 windows10 和 R 3.5.0

Can you give me some advice ,thanks!你能给我一些建议吗,谢谢!

Computing NLLS metrics...
Computing Hessian standard errors for parameter estimates...
   Seconds elapsed in Hessian execution... 7.08
Running diagnostic plots and sensitivity analysis...
Running summary predictions...
Running diagnostic spatial autocorrelation...
Quitting from lines 23-100 (diagnosticSpatialAutoCorr.Rmd) 
Error in set.ZeroPolicyOption(TRUE) : no "set.ZeroPolicyOption" function
RSPARROW SYSTEM ERROR OCCURRED
To reset user options in R use options(backupOptions)

Hey!bro. do you solve the error? I have some questions for you about this model. thanks!