Alexandre, thank you for your inquiry and for your help; however, I
don't have the issue anymore as I declared degree_C as a global variable
in the functions where the note occurred.
Thank you.
Irucka
On 12-12-2022 10:26, Alexandre Courtiol wrote:
Irucka,
If you saw still have the note "no
Irucka,
If you saw still have the note "no visible binding for global variable
‘degree_C’", it implies that somewhere in your package degree_C is still
unquotted...
Do you have your code online for us to help you more effectively?
++
On Mon, 12 Dec 2022 at 17:20, EcoC2S - Irucka Embry
wrote:
> H
Hi Iñaki and Andrew, I'm sorry, I'll clarify my statement here.
set_units(T, "degree_C") still produced the R CMD check note, but it
works with regards to setting the unit for the R expression.
I replaced every instance of set_units(T, degree_C) with set_units(T,
"degree_C") in a single funct
On Mon, 12 Dec 2022 at 16:43, EcoC2S - Irucka Embry wrote:
>
> Hi Andrew, set_units(T, "degree_C") does not work;
Sorry, do you mean that the code fails? Or the code works but you
still see the NOTE? In this case, it is possible that you didn't
replace all the instances of set_units(T, degree_C)
Hi Alexandre, set_units(T, "degree_C") does not prevent the note.
Thank you for your suggestion though.
Irucka
On 11-12-2022 05:15, Alexandre Courtiol wrote:
set_units(T, "degree_C") ## using quotes will prevent the R CMD check
note and will still work in this case.
On Sun, 11 Dec 2022 at 0
Hi Andrew, set_units(T, "degree_C") does not work; however, setting
degree_C as a global variable does work.
Thank you for your suggestion.
Irucka
On 11-12-2022 00:29, Andrew Simmons wrote:
You can declare degree_C as a variable before using set_units():
degree_C <- NULL
set_units(T, degree
set_units(T, "degree_C") ## using quotes will prevent the R CMD check note
and will still work in this case.
On Sun, 11 Dec 2022 at 05:13, EcoC2S - Irucka Embry
wrote:
> In my iemisc package, I am using the units package.
>
> This is an example of how I am using the set_units function:
>
> T <-
You can declare degree_C as a variable before using set_units():
degree_C <- NULL
set_units(T, degree_C)
you could use globalVariables() somewhere at the top-level in your package:
utils::globalVariables("degree_C")
or you could supply degree_C as a literal character string:
set_units(T, "degr
In my iemisc package, I am using the units package.
This is an example of how I am using the set_units function:
T <- 20
set_units(T, degree_C)
Upon checking iemisc with devtools for CRAN submission, I receive the
following note under "checking R code for possible problems":
no visible bind