APSIMInitiative / ApsimOnR

7 stars 6 forks source link

There was an error when I ran apsimonr #3

Open dxl-cde opened 3 years ago

dxl-cde commented 3 years ago

Hi Drew, IT'S Wrong when I run ApsimOnR

Packrat is not installed in the local library -- attempting to bootstrap an installation...

No source tarball of packrat available locally Using user-library packrat (0.6.0.1) to bootstrap this project Packrat mode on. Using library in directory:

  • "D:/R_package/ApsimOnR-master/packrat/lib" Error in loadNamespace(name) : there is no package called ‘yaml’
hol430 commented 3 years ago

Hi @dxl-cde - what command did you run which produced this output?

dxl-cde commented 3 years ago

嗨,@ dxl-cde-您运行了什么命令生成了此输出? Hi drew Thank you for your reply What I'm running is ApsimOnR.Rproj , and then this error appears after opening rstudio. Does this affect the use of the package?

frank0434 commented 3 years ago

Worthy to try install yaml in rstudio

hol430 commented 3 years ago

I haven't had a chance to look into this yet other than to check that it's not happening on my pc, but if you're only interested in using the package, you shouldn't need to open the .Rproj file. You should be able to just run:

install.packages(c('remotes', 'dplyr', 'nloptr', 'DiceDesign', 'DBI', 'cli'))
remotes::install_github('SticsRPacks/CroptimizR')
remotes::install_github('hol430/ApsimOnR')

I will have a closer look at this error when I get the chance.

dxl-cde commented 3 years ago

I haven't had a chance to look into this yet other than to check that it's not happening on my pc, but if you're only interested in using the package, you shouldn't need to open the .Rproj file. You should be able to just run:

install.packages(c('remotes', 'dplyr', 'nloptr', 'DiceDesign', 'DBI', 'cli'))
remotes::install_github('SticsRPacks/CroptimizR')
remotes::install_github('hol430/ApsimOnR')

I will have a closer look at this error when I get the chance. Hi Drew Thanks very much ,I have successfully run this example.