[Task Request on beginr] if() function with conditions of length > 1

in #utopian-io6 years ago

Repository

https://github.com/pzhaonet/beginr

Details

Recently I have received a notice that, as the author, I have to fix a problem in the R package beginr. Unfortunately I did not have time to fix it. Today I am very sad to find that beginr has been removed from CRAN.

The problem is simple. When the conditions of length is greater than one, the function if() gives a warning. The current development version of R is moving from giving a warning to giving an error by default in the near future. This tiny change will break some packages, including beginr. Currently, checking beginr fails when checking with env var R_CHECK_LENGTH_1_CONDITION set to true.

The task is to check all the functions in beginr, find all possible if() functions which are related, and fix the package to no longer use if() with conditions of length greater than one.

Components

Each function with if() in R/foo.R will not accept the conditions of length greater than one.

Deadline

15 June, 2018.

Communication

Contact @dapeng on steemit.com or pzhaonet on github.com.

Github

https://github.com/pzhaonet

Sort:  

Hey @dapeng
Thanks for contributing on Utopian.
We’re already looking forward to your next task request!

Contributing on Utopian
Learn how to contribute on our website or by watching this tutorial on Youtube.

Want to chat? Join us on Discord https://discord.gg/h52nFrV.

Vote for Utopian Witness!

大鹏哥,在用乌托邦啊。
看来要学习一下

Hi @dapeng, thanks for the task request!

Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.

To view those questions and the relevant answers related to your post, click here.


Need help? Write a ticket on https://support.utopian.io/.
Chat with us on Discord.
[utopian-moderator]

Coin Marketplace

STEEM 0.32
TRX 0.12
JST 0.034
BTC 64647.93
ETH 3160.25
USDT 1.00
SBD 4.09