Closed echiaradia closed 8 months ago
Hi Enrico,
I think is this setup just after buildR there is one thing missing. One small dot :) It is from here. Please let me know, if it worked. I will add this into the workflow.
db <- dbConnect(RSQLite::SQLite(), db_path) project_config <- dbReadTable(db, 'project_config') project_config$input_files_dir <- "." dbWriteTable(db, 'project_config', project_config, overwrite = TRUE) dbDisconnect(db)
Thanks @biopsichas for the quick reply! I implemented the correction but the issue is not resolved. I suspect that the write.exe expects a different version of the db from mine (2.1.4) with some specific fields. I resolved the abovementioned issue editing the print_prt table in the db (adding a new field soilout) but after some steps, it returns other errors related to missing fields.... Can I skip the step using directly the files exported by the SWAT+editor?
EDIT: also tested with the sqlite copatible with SWAT+Editor v2.3.1, same errors ...
I think mine is also 2.1.4. So not sure why fields would be different as we used the same buildR . Would be great, if could test it with my .sqlite database. Just to know. It is here.
But of course you can skip this step and use SWATeditor. It is needed just to write fresh text management files, which farmR uses. It is not important, how you get them. This was here just to avoid manual work.
Yes, your sqlite works fine! I will proceed skipping the step and using the txtinout files directly. many thanks enrico
Hi @biopsichas, running the exe_copy_run("lib", tmp_setup_path, "write.exe") command I received the following error:
My sqlite file comes from the buildr script and it is compatible with the SWAT+Editor version 2.1.4. Is this a known issue? Any possibilities to fix it, perhaps by directly copying the already exported files (i.e. txtinout folder)? Many thanks enrico