Re: [R-pkg-devel] Help with R check

2018-01-06 Thread Uwe Ligges
On 06.01.2018 18:36, Boxuan Cui wrote: Hi all, *[Issue 1]* This is the first time I have encountered this, and I have no idea what's going on. I really appreciate anyone's help on this. My package: https://cran.r-project.org/package=DataExplorer My story: - *[Jan 01]* - I plan t

Re: [R-pkg-devel] Assignments to the Global environment

2018-01-06 Thread Uwe Ligges
Let me add: Frequently you can use storage in an enmvironment in yur package, if that helps to avoid assigning into .GlobalEnv. Best, Uwe Ligges On 06.01.2018 22:07, peter dalgaard wrote: You probably need to tell us what you are trying to achieve. Why do you want to assign temp3 to a variabl

Re: [R-pkg-devel] Assignments to the Global environment

2018-01-06 Thread peter dalgaard
You probably need to tell us what you are trying to achieve. Why do you want to assign temp3 to a variable with its name in s into the global environment? Not doing that would clearly eliminate the Note:, but presumably it has a function. However, writing to the global environment, especially to

[R-pkg-devel] Assignments to the Global environment

2018-01-06 Thread Saeb
Hello! Regarding the following NOTE: * checking R code for possible problems ... [4s] NOTE Found the following assignments to the global environment: File 'TSEtools/R/getTSE.R': assign(as.character(s), temp3, envir = as.environment(1)) Please let me know, how can I eliminate this problem? I did

[R-pkg-devel] Help with R check

2018-01-06 Thread Boxuan Cui
Hi all, *[Issue 1]* This is the first time I have encountered this, and I have no idea what's going on. I really appreciate anyone's help on this. My package: https://cran.r-project.org/package=DataExplorer My story: - *[Jan 01]* - I plan to release the latest version to CRAN. I ran a

Re: [R-pkg-devel] Producing ß in help files.

2018-01-06 Thread Göran Broström
Den 2018-01-06 kl. 04:41, skrev Rolf Turner: P. S. It also seems to me to be polite --- if that's the way the bloke writes his name, then that's the way that I ought to write it when referring to him. I couldn't agree more: Thanks Rolf! Göran PS. I follow Uwe's recommendation and write \en

Re: [R-pkg-devel] Imports: vs Suggests:

2018-01-06 Thread Dirk Eddelbuettel
Hugh, You may be looking at this from the wrong angle. "Imports" is really an updated variant of "Depends". Both of them declaure _unconditional_ use of another package. (How they are used is the fine distinction between loading and attaching which we'll skip here). The key point is that a pack

[R-pkg-devel] Imports: vs Suggests:

2018-01-06 Thread Hugh Parsonage
I write to clarify when a package should be in Imports: vs Suggests:. Does the absence of warnings following a R CMD check --as-cran guarantee that packages are placed in the correct field? For example, consider a package with only one exported function: isTrue <- function(x) hutils::AND(x, TRUE)