cran

How to install CRAN packages in environment.yml

烈酒焚心 提交于 2021-02-11 12:32:33
问题 I'm using miniconda to manage my installation of data science packages. It is a workflow that I have somewhat established now, so I would like it to work in this case too. I also would assume it to work, since it is supposed to help in situations like this - where more dependencies than pure python is needed. I would like to install the python cdt toolbox. It is a pip -installable package available on PyPI but not in any conda channels. It requires PyTorch, available easily in PyPI and in

restore all R packages after installing a new version of R?

不打扰是莪最后的温柔 提交于 2021-02-08 08:40:22
问题 When you are doing an R update, what is the best approach to re-installing and updating all packages that were already installed on your previous R version when some of your packages are on CRAN but the rest are on github (or other sources)? In the past, I've followed this approach: Open old version of R (e.g. R 3.6 ) and make a copy of all installed packages: installed <- as.data.frame(installed.packages()) #save a copy write.csv(installed, 'previously_installed.csv') Then install and open

What is the impact or value of listing multiple repositories in .Options$repos, in R?

a 夏天 提交于 2021-02-08 01:56:43
问题 I noticed that this answer to a question about .Rprofile settings mentions setting two repositories for CRAN. Is there any benefit to doing so, such as the possibility of one site being down, then another is accessed? It seems that the CRAN mirrors are identical or eventually mirrors, and uptime seems very good, so are there any other advantages? (I realize OmegaHat and Bioconductor have their own repositories, so I'm focusing on CRAN.) Is it fair to say that CRAN is for stable releases and R

Unload a package and all dependencies

我怕爱的太早我们不能终老 提交于 2021-02-04 15:08:47
问题 I am trying to unload a package with all of its dependencies. The problem that I am running into is the order in which to unload dependencies. Because dependencies are recursive, they can only be unloaded from bottom-up in the dependency tree. Is there an easy or native way in R to accomplish this? Below a first go in what I would like to accomplish: eval_current <- function(expr, envir=parent.frame(), timeout=60){ #set the timeout setTimeLimit(elapsed=timeout, transient=TRUE); #currently

Unload a package and all dependencies

守給你的承諾、 提交于 2021-02-04 15:08:20
问题 I am trying to unload a package with all of its dependencies. The problem that I am running into is the order in which to unload dependencies. Because dependencies are recursive, they can only be unloaded from bottom-up in the dependency tree. Is there an easy or native way in R to accomplish this? Below a first go in what I would like to accomplish: eval_current <- function(expr, envir=parent.frame(), timeout=60){ #set the timeout setTimeLimit(elapsed=timeout, transient=TRUE); #currently

Package environment manipulation and submitting to CRAN

别来无恙 提交于 2021-01-29 14:17:16
问题 I have built a package for shiny that allows the user to interact with reactive objects in their global environment. I think it's a game changer for troubleshooting. However, I know that CRAN will reject this due to the manipulation of the global environment. I see answers directing users to create a new environment but I don't see how to access the objects of that environment in the environment pane, I just see the environment name. If I run something like this from this example: Global

R package - Transferring environment from imported package

↘锁芯ラ 提交于 2021-01-28 12:00:45
问题 Assume an R package ( myPackage ) that imports the R package RCircos via the DESCRIPTION file and the NAMESPACE file. $ cat DESCRIPTION Package: myPackage Imports: RCircos (>= 1.2.0) ... $ cat NAMESPACE import(RCircos) ... One of the perks of RCircos is that it defines a custom environment (called RCircos.Env ) and reads/writes variables to this environment from various of its functions. For example, function RCircos.Initialize.Plot.Parameters reads and writes to this environment. ...

R CRAN Check fail when using parallel functions

大城市里の小女人 提交于 2020-05-27 13:14:26
问题 I want to submit a package to CRAN that uses parallel computation using parallel::makeCluster(parallel::detectCores()) . When I build the package everything works fine, but when I check the package ( devtools::check(document = FALSE) ) it returns the error: Running examples in ‘TESTER-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: hello_world > ### Title: Prints hello world > ### Aliases: hello_world > > ### ** Examples >

RDCOMClient installation trouble on R-3.6

风流意气都作罢 提交于 2020-03-22 06:59:32
问题 I cannot install RDCOMClient, using R-3.6 Some background: RDCOMClient works in my R-3.51 instance, and I need to use 3.6, and I need to use RDCOMClient to interact with my desktop's Outlook. mailR and sendmailR are not currently an option. Thing's I've tried: >install.packages("RDCOMClient") Installing package into ‘C:/Users/<user>/Documents/R/win-library/3.6’ (as ‘lib’ is unspecified) Warning in install.packages : package ‘RDCOMClient’ is not available (for R version 3.6.0) > library(

Ubuntu16.04 安装R与RStudio

ε祈祈猫儿з 提交于 2020-03-15 00:06:21
安装R语言 我们使用apt的方式进行安装,步骤如下: 首先需要在/etc/apt/sources.list文件的末尾添加 deb https://<my.favorite.cran.mirror>/bin/linux/ubuntu artful/ deb https://<my.favorite.cran.mirror>/bin/linux/ubuntu xenial/ deb https://<my.favorite.cran.mirror>/bin/linux/ubuntu trusty/ 在/etc/apt/sources.list文件中,用您喜欢的CRAN镜像的实际URL替换 sudo apt-get update sudo apt-get install r-base # 需要从源代码编译R软件包的用户[例如软件包维护人员或任何使用install.packages() # 安装软件包的人)也应该安装r-base-dev软件包: sudo apt-get install r-base-dev 之后为可选内容 Ubuntu的R软件包与Debian软件相似。您可以在位于 https://cran.R-project.org/bin/linux/debian/ 的Debian README文件中找到更多信息。 R或其某些软件包的安装和编译可能需要来自“backports