Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There was an error when I ran apsimonr #3

Open
dxl-cde opened this issue Apr 7, 2021 · 5 comments
Open

There was an error when I ran apsimonr #3

dxl-cde opened this issue Apr 7, 2021 · 5 comments

Comments

@dxl-cde
Copy link

dxl-cde commented Apr 7, 2021

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
Copy link
Collaborator

hol430 commented Apr 8, 2021

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

@dxl-cde
Copy link
Author

dxl-cde commented Apr 9, 2021

嗨,@ 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
Copy link

Worthy to try install yaml in rstudio

@hol430
Copy link
Collaborator

hol430 commented Apr 12, 2021

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
Copy link
Author

dxl-cde commented Apr 13, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants