random character on line 21 of plot.occurrence.threshold.R
Hey Jeff, looks like there's a random "b" on line 21 in plot.occurrence.threshold.R https://github.com/jeffreyevans/rfUtilities/blob/master/R/plot.occurrence.threshold.R
That random b seems to be preventing me from installing the development version of the packages on R 4.4.0.
See below error:
remotes::install_github("jeffreyevans/rfUtilities")
Downloading GitHub repo jeffreyevans/rfUtilities@HEAD
Running `R CMD build`...
* checking for file ‘/tmp/RtmpYZDbXI/remotes1e94245514714f/jeffreyevans-rfUtilities-a113e2c/DESCRIPTION’ ... OK
* preparing ‘rfUtilities’:
* checking DESCRIPTION meta-information ... OK
* checking for LF line-endings in source and make files and shell scripts
* checking for empty or unneeded directories
* building ‘rfUtilities_2.2-0.tar.gz’
Installing package into ‘/cluster/medbow/home/kdavis79/R/x86_64-pc-linux-gnu-library/4.4’
(as ‘lib’ is unspecified)
Warning in strptime(xx, f, tz = tz) :
unknown timezone 'America/New_York'
Warning in strptime(xx, f, tz = tz) : unknown timezone 'GMT'
Warning in strptime(xx, f, tz = tz) :
unknown timezone 'America/New_York'
* installing *source* package ‘rfUtilities’ ...
** using staged installation
** R
Error in parse(...) :
/tmp/Rtmpxjlnl0/R.INSTALL3061913ee3680d/rfUtilities/R/plot.occurrence.threshold.R:21:10: unexpected symbol
20: stop("Not a supported statistic")
21: } b
^
ERROR: unable to collate and parse R files for package ‘rfUtilities’
* removing ‘/cluster/medbow/home/kdavis79/R/x86_64-pc-linux-gnu-library/4.4/rfUtilities’
Warning message:
In i.p(...) :
installation of package ‘/tmp/RtmpYZDbXI/file1e94243dc92828/rfUtilities_2.2-0.tar.gz’ had non-zero exit status
Katie, at this point the GitHub development version of rfUtilities is “under development”. Please install from the CRAN archive using the devtools package.
devtools::install_version("rfUtilities", version="2.1-5")
Best, Jeff
Jeffrey S. Evans, Ph.D., | Senior Landscape Ecologist & Biometrician The Nature Conservancy | Global Protect, Science Visiting Professor | University of Wyoming | Ecosystem Sciences Laramie, WY | @.@.> | (970) 672-6766tel:(970)%20672-6766 ORCID-ID 0000-0002-5533-7044 TNC Biographyhttps://www.nature.org/en-us/about-us/who-we-are/our-people/jeff-evans/ – Google Scholarhttps://scholar.google.com/citations?user=FwU_ppgAAAAJ&hl=en
From: Katie Davis @.> Sent: Wednesday, October 9, 2024 1:42 PM To: jeffreyevans/rfUtilities @.> Cc: Subscribed @.***> Subject: Re: [jeffreyevans/rfUtilities] random character on line 21 of plot.occurrence.threshold.R (Issue #12)
That random b seems to be preventing me from installing the development version of the packages on R 4.4.0.
See below error:
remotes::install_github("jeffreyevans/rfUtilities")
Downloading GitHub repo @.***
Running R CMD build...
-
checking for file ‘/tmp/RtmpYZDbXI/remotes1e94245514714f/jeffreyevans-rfUtilities-a113e2c/DESCRIPTION’ ... OK
-
preparing ‘rfUtilities’:
-
checking DESCRIPTION meta-information ... OK
-
checking for LF line-endings in source and make files and shell scripts
-
checking for empty or unneeded directories
-
building ‘rfUtilities_2.2-0.tar.gz’
Installing package into ‘/cluster/medbow/home/kdavis79/R/x86_64-pc-linux-gnu-library/4.4’
(as ‘lib’ is unspecified)
Warning in strptime(xx, f, tz = tz) :
unknown timezone 'America/New_York'
Warning in strptime(xx, f, tz = tz) : unknown timezone 'GMT'
Warning in strptime(xx, f, tz = tz) :
unknown timezone 'America/New_York'
- installing source package ‘rfUtilities’ ...
** using staged installation
** R
Error in parse(...) :
/tmp/Rtmpxjlnl0/R.INSTALL3061913ee3680d/rfUtilities/R/plot.occurrence.threshold.R:21:10: unexpected symbol
20: stop("Not a supported statistic")
21: } b
^
ERROR: unable to collate and parse R files for package ‘rfUtilities’
- removing ‘/cluster/medbow/home/kdavis79/R/x86_64-pc-linux-gnu-library/4.4/rfUtilities’
Warning message:
In i.p(...) :
installation of package ‘/tmp/RtmpYZDbXI/file1e94243dc92828/rfUtilities_2.2-0.tar.gz’ had non-zero exit status
— Reply to this email directly, view it on GitHubhttps://github.com/jeffreyevans/rfUtilities/issues/12#issuecomment-2403296200, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACLKH74A4TV6T5WWZ6N2MU3Z2WBHNAVCNFSM6AAAAABPVH7VFKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBTGI4TMMRQGA. You are receiving this because you are subscribed to this thread.Message ID: @.@.>>
Thanks, Jeff, that let me install the package!
Yes, this worked for me as well. Thanks!
I fixed the "b" that was causing the error as well as an submitted an update to the log.loss function that allows for weights (eg., proportion of classes in unbalanced data). I apologize that this package has become somewhat defunct. I just have not had time to finish updates that would allow for other classes of RF models (eg., ranger) to be used. The different calls in the various models make this difficult and time consuming to code so, it has fallen by the wayside In the next few weeks I am planning on finishing updates and resubmitting to CRAN with an updated version on R-Universe as well.
Best, Jeff
From: GianBen @.> Sent: Friday, May 23, 2025 7:40 AM To: jeffreyevans/rfUtilities @.> Cc: Jeffrey Evans @.>; Comment @.> Subject: Re: [jeffreyevans/rfUtilities] random character on line 21 of plot.occurrence.threshold.R (Issue #12)
[https://avatars.githubusercontent.com/u/13815699?s=20&v=4]Gian77 left a comment (jeffreyevans/rfUtilities#12)https://github.com/jeffreyevans/rfUtilities/issues/12#issuecomment-2904461125
Yes, this worked for me as well. Thanks!
Reply to this email directly, view it on GitHubhttps://github.com/jeffreyevans/rfUtilities/issues/12#issuecomment-2904461125, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACLKH735JIDTBJ7P3HGCLJT274QJNAVCNFSM6AAAAABPVH7VFKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDSMBUGQ3DCMJSGU. You are receiving this because you commented.Message ID: @.@.>>