Open llq4399 opened 1 week ago
However, Aquacrop can be opened on the command line, indicating that there is nothing wrong with the software itself
Did you download the standalone version of Aquacrop: https://www.fao.org/aquacrop/software/aquacropplug-inprogramme/en/ This is a different version from the standard aquacrop with graphical user interface.
I didn't download the standalone version, I downloaded the standard version. Does this AquacropOnR correspond to an independent version
The aquacroponr package only works with the standalone version, not with the GUI version. An example for using the package can be found at https://tdeswaef.github.io/aquacroponr/articles/example-simulation.html
I don't know why 404
apparently, there is a new version (7.2). I have not tested aquacroponr on the new version, so I would advise to use the 7.1 version. You can download the 7.1 version here: https://github.com/KUL-RSDA/AquaCrop/releases?q=7.1&expanded=true (under "assets")
I was so upset. I have installed the standalone version 7.1. But I still can't find it ![Uploading 微信图片_20241122174402.png…]()
library(AquacropOnR) tryCatch(
- path_config("D:/R/aquacrop-7.1-x86_64-windows/aquacrop.exe"),
- error = function(e) {
- print("错误信息:")
- print(e)
- traceback()
- }
- ) [1] "错误信息:" <simpleError in path_config("D:/R/aquacrop-7.1-x86_64-windows/aquacrop.exe"): No executable file found in Aquacrop folder> 1: source("~/.active-rstudio-document")
And I still have a lot of questions. The standalone version of the manual says that the LIST directory places PRO files. But I find that the Simulation Example reads CRO files. Does this mean I can read files in the GUI version? Can I read the files in the GUI and simulate them in a standalone version?
I want to use AquacropOnR, call aquacrop, and do a Morris sensitivity analysis. But in the process of using I found that I could not resolve the conflict between scene setting and reading PRO files. In fact, when I design scenario, ERROR is unable to open 'LIST/S_01.PRO': No such file or directory. But when I design the PRO file, ERROR usually is unable to open 'LIST/YXX2015CZ.PRO': No such file or directory. I don‘t know why.
source("~/.active-rstudio-document")
A tibble: 1 × 12
Scenario Input_Date Sim_Date Plant_Date IRRI Soil Plu Tnx ETo
1 S_01 2015-01-01 2015-01-01 2015-01-01 Rain… D:/R… D:/R… D:/R… D:/R… # ℹ 3 more variables: FMAN , GWT , SW0 Error in `map()`: ℹ In index: 1. ℹ With name: Scenario. Caused by error in `file()`: ! 无法打开链结 Run `rlang::last_trace()` to see where the error occurred. 警告信息: In file(file, ifelse(append, "a", "w")) : 无法打开文件'LIST/S_01.PRO': No such file or directory source("~/.active-rstudio-document") # A tibble: 1 × 12 Scenario Input_Date Sim_Date Plant_Date IRRI Soil Plu Tnx ETo 1 YXX2015… 2015-01-01 2015-01-01 2015-01-01 Rain… D:/R… D:/R… D:/R… D:/R… # ℹ 3 more variables: FMAN , GWT , SW0 Error in `map()`: ℹ In index: 1. ℹ With name: Scenario. Caused by error in `file()`: ! 无法打开链结 Run `rlang::last_trace()` to see where the error occurred. 警告信息: In file(file, ifelse(append, "a", "w")) : 无法打开文件'LIST/YXX2015CZ.PRO': No such file or directory
I downloaded the latest version of Aquacrop7.1, but couldn't find the file when calling with AquacropOnR. I tried a number of things, such as changing the file path fear the path is too long, putting Aquacrop on the desktop, manually opening Aquacrop to see if it works, and modifying Aquacrop properties. I navigate to the file directory and make sure it exists. But none of them solved the problem.
library(AquacropOnR) path_config("D:/R/yxxtry/aquacrop/AquaCrop.exe")