Re: [R-pkg-devel] help with revdep_check

2023-09-25 Thread William Revelle
Thanks.  Although I have had Xtools for quite a while, it had not been 
activated.  Installing a new copy made all the difference

Bill


> On Sep 25, 2023, at 12:24 PM, Gábor Csárdi  wrote:
> 
> Seems like you are on macOS. You need to install XCode or the Command
> Line Tools to be able to compile packages with C/C++/Fortran code.
> 
> Gabor
> 
> On Mon, Sep 25, 2023 at 7:02 PM William Revelle  wrote:
>> 
>> Dear friends,
>> I am trying to release a new update to psych and psychTools and am having 
>> problems with revdep_check
>> 
>> The error message from revdep_check is less than helpful:’
>> 
>> fn is
>> 
>> fn  <-  "/Users/WR/Library/CloudStorage/Dropbox/psychTools/"
>> 
>> revdep_check(fn,num_workers=8)
>> ── CHECK 
>> ──
>>  15 packages ──
>> [0/15] 00:00:15 | ETA:  ?s | (8) afex [I], bootnet [I], modnets [I], psych 
>> [I], alphaci [D], C...Error: Could not find tools necessary to compile a 
>> package
>> Call `pkgbuild::check_build_tools(debug = TRUE)` to diagnose the problem.
>>> check_build_tools(debug=TRUE)
>> Trying to compile a simple C file
>> Error: Could not find tools necessary to compile a package
>> Call `pkgbuild::check_build_tools(debug = TRUE)` to diagnose the problem.
>> rror: Could not find tools necessary to compile a package
>> 
>> Any suggestions would be appreciated.
>> 
>> William Revellepersonality-project.org/revelle.html
>> Professor  personality-project.org
>> Department of Psychology www.wcas.northwestern.edu/psych/
>> Northwestern Universitywww.northwestern.edu/
>> Use R for psychology personality-project.org/r
>> It is 90 seconds to midnight   www.thebulletin.org
>> 
>> 
>>[[alternative HTML version deleted]]
>> 
>> __
>> R-package-devel@r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-package-devel

William Revellepersonality-project.org/revelle.html
Professorpersonality-project.org
Department of Psychology www.wcas.northwestern.edu/psych/
Northwestern Universitywww.northwestern.edu/
Use R for psychology personality-project.org/r
It is 90 seconds to midnightwww.thebulletin.org

__
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel


Re: [R-pkg-devel] help with revdep_check

2023-09-25 Thread Gábor Csárdi
Seems like you are on macOS. You need to install XCode or the Command
Line Tools to be able to compile packages with C/C++/Fortran code.

Gabor

On Mon, Sep 25, 2023 at 7:02 PM William Revelle  wrote:
>
> Dear friends,
> I am trying to release a new update to psych and psychTools and am having 
> problems with revdep_check
>
> The error message from revdep_check is less than helpful:’
>
> fn is
>
> fn  <-  "/Users/WR/Library/CloudStorage/Dropbox/psychTools/"
>
> revdep_check(fn,num_workers=8)
> ── CHECK 
> ──
>  15 packages ──
> [0/15] 00:00:15 | ETA:  ?s | (8) afex [I], bootnet [I], modnets [I], psych 
> [I], alphaci [D], C...Error: Could not find tools necessary to compile a 
> package
> Call `pkgbuild::check_build_tools(debug = TRUE)` to diagnose the problem.
> > check_build_tools(debug=TRUE)
> Trying to compile a simple C file
> Error: Could not find tools necessary to compile a package
> Call `pkgbuild::check_build_tools(debug = TRUE)` to diagnose the problem.
> rror: Could not find tools necessary to compile a package
>
> Any suggestions would be appreciated.
>
> William Revellepersonality-project.org/revelle.html
> Professor  personality-project.org
> Department of Psychology www.wcas.northwestern.edu/psych/
> Northwestern Universitywww.northwestern.edu/
> Use R for psychology personality-project.org/r
> It is 90 seconds to midnight   www.thebulletin.org
>
>
> [[alternative HTML version deleted]]
>
> __
> R-package-devel@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel

__
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel


[R-pkg-devel] help with revdep_check

2023-09-25 Thread William Revelle
Dear friends,
I am trying to release a new update to psych and psychTools and am having 
problems with revdep_check

The error message from revdep_check is less than helpful:’

fn is 

fn  <-  "/Users/WR/Library/CloudStorage/Dropbox/psychTools/"

revdep_check(fn,num_workers=8)
── CHECK 
── 
15 packages ──
[0/15] 00:00:15 | ETA:  ?s | (8) afex [I], bootnet [I], modnets [I], psych [I], 
alphaci [D], C...Error: Could not find tools necessary to compile a package
Call `pkgbuild::check_build_tools(debug = TRUE)` to diagnose the problem.
> check_build_tools(debug=TRUE)
Trying to compile a simple C file
Error: Could not find tools necessary to compile a package
Call `pkgbuild::check_build_tools(debug = TRUE)` to diagnose the problem.
rror: Could not find tools necessary to compile a package

Any suggestions would be appreciated. 

William Revellepersonality-project.org/revelle.html
Professor  personality-project.org
Department of Psychology www.wcas.northwestern.edu/psych/
Northwestern Universitywww.northwestern.edu/
Use R for psychology personality-project.org/r
It is 90 seconds to midnight   www.thebulletin.org


[[alternative HTML version deleted]]

__
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel


Re: [R-pkg-devel] R_orderVector1 - algo: radix, shell, or another?

2023-09-25 Thread Ivan Krylov
В Sun, 24 Sep 2023 10:38:41 +0200
Jan Gorecki  пишет:

> https://github.com/wch/r-source/blob/ed51d34ec195b89462a8531b9ef30b7b72e47204/src/main/sort.c#L1133

> could anyone describe which one R_orderVector1 uses,

The body of the sorting algorithm is defined in the sort2_with_index
macro. This is shell sort. (I don't actually recognise sorting
algorithms on sight, but the "sincs" array gave it away:
.)

> and if there is easy API to use different ones from C?

No easy ones, I think. You could construct a call to order(..., method
= 'radix') from R or bundle a sort implementation of your own.

These are all undocumented implementation details. They could change in
a new version of R (although quite a lot of it hasn't changed in 11-22
years). Why are you looking for specific sorting algorithms? Could
there be a better way to solve your problem?

-- 
Best regards,
Ivan

__
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel