femiguez / apsimx

R package for APSIM-X
https://femiguez.github.io/apsimx-docs/
45 stars 19 forks source link

inspect_apsimx_replacement not working #125

Closed guillemodon closed 7 months ago

guillemodon commented 12 months ago

Hi Fernando!

I'm having trouble using inspect_apsimx_replacement not working. When I change the directory to a different one than the one found in the package documentation, inspect_apsimx_replacement doesn't find it.

inspect_apsimx_replacement("maize.apsimx", src.dir = "C:/Users/PC/Desktop/GENCAL",

Error in inspect_apsimx_replacement("maize.apsimx", src.dir = "C:/Users/PC/Desktop/GENCAL", : There are no .apsimx files in the specified directory to inspect.

femiguez commented 11 months ago

Hi Guillermo,

I haven't had trouble with this aspect of the function before. You can try changing the working directory in R to the location where the file "maize.apsimx" is. In this way, you would not need to change the 'src.dir' argument. If you give me more information about the file structure I might be able to give you some other ideas.

Best,

Fernando

femiguez commented 7 months ago

I'm closing this, but feel free to open a new issue