conda build r-ldavis/ not working

杀马特。学长 韩版系。学妹 提交于 2019-12-25 09:01:40

问题


I am new to jupyter, and I am looking to install an R package (tseries) that is available on CRAN

I was trying to follow a question that was raised, but I think I am getting a different problem.

I was originally following this link

conda - How to install R packages that are not available in "R-essentials"?

But it seems obvious that the answer direct me to another link which is

https://www.continuum.io/content/conda-data-science

under the Building a conda R package

They said to run

conda skeleton cran ldavis

and then I got the following

C:\Users\Rami>conda skeleton cran ldavis
Tip: install CacheControl (conda package) to cache the CRAN metadata
Fetching metadata from http://cran.r-project.org/
Tip: install CacheControl (conda package) to cache the CRAN metadata
Traceback (most recent call last):
  File "d:\Users\Rami\Anaconda3\Scripts\conda-skeleton-script.py", line 5, in <module>
    sys.exit(conda_build.cli.main_skeleton.main())
  File "d:\Users\Rami\Anaconda3\lib\site-packages\conda_build\cli\main_skeleton.py", line 65, in main
    return execute(sys.argv[1:])
  File "d:\Users\Rami\Anaconda3\lib\site-packages\conda_build\cli\main_skeleton.py", line 61, in execute
    api.skeletonize(package, args.repo, config=config)
  File "d:\Users\Rami\Anaconda3\lib\site-packages\conda_build\api.py", line 192, in skeletonize
    recursive=recursive, config=config, **kwargs)
  File "d:\Users\Rami\Anaconda3\lib\site-packages\conda_build\skeletons\cran.py", line 527, in skeletonize
    raise RuntimeError("directory already exists: %s" % dir_path)
RuntimeError: directory already exists: .\r-ldavis

Please help me in steps as I am really new to this on windows 10


回答1:


Thank you all for your remarks but the easiest way I found for not worrying about the r directory is through downloading the package directly from jupyter using the following command

install.packages('tseries', repos='http://cran.us.r-project.org')

This worked fine for me.



来源:https://stackoverflow.com/questions/39914819/conda-build-r-ldavis-not-working

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!