[英]conda build r-ldavis/ not working
I am new to jupyter, and I am looking to install an R package (tseries) that is available on CRAN 我是jupyter的新手,我想安装CRAN上可用的R包(tseries)
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"? conda-如何安装“ R-essentials”中不可用的R软件包?
But it seems obvious that the answer direct me to another link which is 但似乎答案很明显地将我引向了另一个链接
https://www.continuum.io/content/conda-data-science https://www.continuum.io/content/conda-data-science
under the Building a conda R package 在构建conda R包下
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 请逐步帮助我,因为我真的是Windows 10的新手
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 谢谢大家的评论,但是我发现最不用担心r目录的最简单方法是使用以下命令直接从jupyter下载软件包
install.packages('tseries', repos='http://cran.us.r-project.org')
This worked fine for me. 这对我来说很好。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.