Re: [R] Package Caret

2023-04-16 Thread Bert Gunter
It doesn't. namesraum = namespace which is technically different than
a paket = package (as you, as a German speaker, know of course). I
leave it to you to search for suitable references on the details of
what these are in R, unless someone wiser than I offers a
mini-tutorial here.

But glad I could help.

Best,
Bert


On Sun, Apr 16, 2023 at 3:19 PM Gábor Malomsoki
 wrote:
>
> Many thanks Bert, now is ok, i did not know that "Namensraum" should  mean a 
> package
>
> Am So., 16. Apr. 2023 um 23:44 Uhr schrieb Bert Gunter 
> :
>>
>> So update the vctrs package to the latest version first before loading
>> R-tools (or the caret package, specifically)?
>>
>> -- Bert
>>
>> On Sun, Apr 16, 2023 at 1:57 PM Gábor Malomsoki
>>  wrote:
>> >
>> > I have newly installed R, R-tools, RStudio, but still not working:
>> >
>> > library(caret)Lade nötiges Paket: latticeError: Laden von Paket oder
>> > Namensraum für ‘caret’ in loadNamespace(i, c(lib.loc, .libPaths()),
>> > versionCheck = vI[[i]]): fehlgeschlagen
>> >  Namensraum ‘vctrs’ 0.5.2 ist bereits geladen, aber >= 0.6.0 wird gefordert
>> >
>> >
>> > Error in createDataPartition(hypotezis_df$X, p = 0.75, list = FALSE,
>> > times = 1) :
>> >   could not find function "createDataPartition"
>> >
>> >
>> > R version 4.2.3 (2023-03-15 ucrt)
>> > Platform: x86_64-w64-mingw32/x64 (64-bit)
>> > Running under: Windows 10 x64 (build 19044)
>> >
>> > Matrix products: default
>> >
>> > locale:
>> > [1] LC_COLLATE=German_Austria.utf8  LC_CTYPE=German_Austria.utf8
>> > [3] LC_MONETARY=German_Austria.utf8 LC_NUMERIC=C
>> > [5] LC_TIME=German_Austria.utf8
>> >
>> > attached base packages:
>> > [1] stats graphics  grDevices utils datasets  methods   base
>> >
>> > other attached packages:
>> >  [1] plotrix_3.8-2rgl_1.1.3scatterplot3d_0.3-43
>> > lattice_0.20-45
>> >  [5] knitr_1.42   GGally_2.1.2 fs_1.6.0
>> > lubridate_1.9.2
>> >  [9] forcats_1.0.0stringr_1.5.0dplyr_1.1.0
>> > purrr_1.0.1
>> > [13] readr_2.1.4  tidyr_1.3.0  tibble_3.1.8
>> > ggplot2_3.4.2
>> > [17] tidyverse_2.0.0
>> >
>> > loaded via a namespace (and not attached):
>> >  [1] progress_1.2.2 tidyselect_1.2.0   xfun_0.36  
>> > colorspace_2.1-0
>> >  [5] vctrs_0.5.2generics_0.1.3 htmltools_0.5.4
>> > base64enc_0.1-3
>> >  [9] utf8_1.2.2 rlang_1.1.0pillar_1.8.1   glue_1.6.2
>> > [13] withr_2.5.0RColorBrewer_1.1-3 foreach_1.5.2  
>> > lifecycle_1.0.3
>> > [17] plyr_1.8.8 timeDate_4022.108  munsell_0.5.0  gtable_0.3.1
>> > [21] ragg_1.2.5 htmlwidgets_1.6.1  codetools_0.2-19   
>> > labeling_0.4.2
>> > [25] fastmap_1.1.0  tzdb_0.3.0 fansi_1.0.4Rcpp_1.0.10
>> > [29] scales_1.2.1   jsonlite_1.8.4 farver_2.1.1   
>> > systemfonts_1.0.4
>> > [33] textshaping_0.3.6  digest_0.6.31  hms_1.1.2  
>> > stringi_1.7.12
>> > [37] grid_4.2.3 cli_3.6.0  tools_4.2.3
>> > magrittr_2.0.3
>> > [41] crayon_1.5.2   pkgconfig_2.0.3ellipsis_0.3.2 Matrix_1.5-3
>> > [45] prettyunits_1.1.1  timechange_0.2.0   gower_1.0.1reshape_0.8.9
>> > [49] rstudioapi_0.14iterators_1.0.14   R6_2.5.1   nlme_3.1-162
>> > [53] compiler_4.2.3
>> >
>> >
>> > Am Fr., 14. Apr. 2023 um 11:24 Uhr schrieb Duncan Murdoch <
>> > murdoch.dun...@gmail.com>:
>> >
>> > > You should post the result of running sessionInfo(), and tell us how you
>> > > installed R.  Your installation seems very broken.
>> > >
>> > > Duncan Murdoch
>> > >
>> > > On 14/04/2023 3:45 a.m., Gábor Malomsoki wrote:
>> > > > This is the error then:
>> > > > error in prettyseq(1:ncol(out)) : could not find function "prettyseq"
>> > > >
>> > > >
>> > > >
>> > > >
>> > > > Eric Berger  schrieb am Fr., 14. Apr. 2023,
>> > > 09:06:
>> > > >
>> > > >> What happens if you do the following?
>> > > >>> library(caret)
>> > > >>> ?caret::createDataPartition
>> > > >>
>> > > >> i.e. to confirm that caret is loaded, seek help on this function
>> > > >>
>> > > >>
>> > > >> On Fri, Apr 14, 2023 at 9:56 AM Gábor Malomsoki <
>> > > gmalomsoki1...@gmail.com>
>> > > >> wrote:
>> > > >>
>> > > >>> Eric,
>> > > >>>
>> > > >>> Yes, i know, i am calling the package, but this is not working.
>> > > >>> I saw a similar question in Stackoverflow, advising install package
>> > > Rcpp,
>> > > >>> but this one i am unable to install.
>> > > >>>
>> > > >>> Eric Berger  schrieb am Fr., 14. Apr. 2023,
>> > > 08:47:
>> > > >>>
>> > >  You first have to load the package using the library command.
>> > > > library(caret)
>> > > 
>> > >  Then you can call createDataPartition. e.g.
>> > > > data(oil)
>> > > > createDataPartition(oilType,2)
>> > > 
>> > >  HTH,
>> > >  Eric
>> > > 
>> > > 
>> > >  On Fri, Apr 14, 2023 at 7:52 AM Gábor Malomsoki <
>> > >  gmalomsoki1...@gmail.com> wrote:
>> > > 
>> > > > Dear all,
>> > > > 

Re: [R] Package Caret

2023-04-16 Thread Uwe Ligges




On 17.04.2023 00:19, Gábor Malomsoki wrote:

Many thanks Bert, now is ok, i did not know that "Namensraum" should  mean
a package



Two hints:

1. The NAMESPACE is meant and he trnlsation is very literal here.

2. I typically have LANGUAGE=en set for R to avoid confusion.

Best,
Uwe Ligges



Am So., 16. Apr. 2023 um 23:44 Uhr schrieb Bert Gunter <
bgunter.4...@gmail.com>:


So update the vctrs package to the latest version first before loading
R-tools (or the caret package, specifically)?

-- Bert

On Sun, Apr 16, 2023 at 1:57 PM Gábor Malomsoki
 wrote:


I have newly installed R, R-tools, RStudio, but still not working:

library(caret)Lade nötiges Paket: latticeError: Laden von Paket oder
Namensraum für ‘caret’ in loadNamespace(i, c(lib.loc, .libPaths()),
versionCheck = vI[[i]]): fehlgeschlagen
  Namensraum ‘vctrs’ 0.5.2 ist bereits geladen, aber >= 0.6.0 wird

gefordert



Error in createDataPartition(hypotezis_df$X, p = 0.75, list = FALSE,
times = 1) :
   could not find function "createDataPartition"


R version 4.2.3 (2023-03-15 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19044)

Matrix products: default

locale:
[1] LC_COLLATE=German_Austria.utf8  LC_CTYPE=German_Austria.utf8
[3] LC_MONETARY=German_Austria.utf8 LC_NUMERIC=C
[5] LC_TIME=German_Austria.utf8

attached base packages:
[1] stats graphics  grDevices utils datasets  methods   base

other attached packages:
  [1] plotrix_3.8-2rgl_1.1.3scatterplot3d_0.3-43
lattice_0.20-45
  [5] knitr_1.42   GGally_2.1.2 fs_1.6.0
lubridate_1.9.2
  [9] forcats_1.0.0stringr_1.5.0dplyr_1.1.0
purrr_1.0.1
[13] readr_2.1.4  tidyr_1.3.0  tibble_3.1.8
ggplot2_3.4.2
[17] tidyverse_2.0.0

loaded via a namespace (and not attached):
  [1] progress_1.2.2 tidyselect_1.2.0   xfun_0.36

colorspace_2.1-0

  [5] vctrs_0.5.2generics_0.1.3 htmltools_0.5.4

base64enc_0.1-3

  [9] utf8_1.2.2 rlang_1.1.0pillar_1.8.1   glue_1.6.2
[13] withr_2.5.0RColorBrewer_1.1-3 foreach_1.5.2

lifecycle_1.0.3

[17] plyr_1.8.8 timeDate_4022.108  munsell_0.5.0

gtable_0.3.1

[21] ragg_1.2.5 htmlwidgets_1.6.1  codetools_0.2-19

  labeling_0.4.2

[25] fastmap_1.1.0  tzdb_0.3.0 fansi_1.0.4Rcpp_1.0.10
[29] scales_1.2.1   jsonlite_1.8.4 farver_2.1.1

  systemfonts_1.0.4

[33] textshaping_0.3.6  digest_0.6.31  hms_1.1.2

stringi_1.7.12

[37] grid_4.2.3 cli_3.6.0  tools_4.2.3

magrittr_2.0.3

[41] crayon_1.5.2   pkgconfig_2.0.3ellipsis_0.3.2

  Matrix_1.5-3

[45] prettyunits_1.1.1  timechange_0.2.0   gower_1.0.1

reshape_0.8.9

[49] rstudioapi_0.14iterators_1.0.14   R6_2.5.1

  nlme_3.1-162

[53] compiler_4.2.3


Am Fr., 14. Apr. 2023 um 11:24 Uhr schrieb Duncan Murdoch <
murdoch.dun...@gmail.com>:


You should post the result of running sessionInfo(), and tell us how

you

installed R.  Your installation seems very broken.

Duncan Murdoch

On 14/04/2023 3:45 a.m., Gábor Malomsoki wrote:

This is the error then:
error in prettyseq(1:ncol(out)) : could not find function "prettyseq"




Eric Berger  schrieb am Fr., 14. Apr. 2023,

09:06:



What happens if you do the following?

library(caret)
?caret::createDataPartition


i.e. to confirm that caret is loaded, seek help on this function


On Fri, Apr 14, 2023 at 9:56 AM Gábor Malomsoki <

gmalomsoki1...@gmail.com>

wrote:


Eric,

Yes, i know, i am calling the package, but this is not working.
I saw a similar question in Stackoverflow, advising install package

Rcpp,

but this one i am unable to install.

Eric Berger  schrieb am Fr., 14. Apr. 2023,

08:47:



You first have to load the package using the library command.

library(caret)


Then you can call createDataPartition. e.g.

data(oil)
createDataPartition(oilType,2)


HTH,
Eric


On Fri, Apr 14, 2023 at 7:52 AM Gábor Malomsoki <
gmalomsoki1...@gmail.com> wrote:


Dear all,
When i try to use createDataPartition after calling package

'caret',

i

get
the message:
"could not find function createDataPartition"

I use:
R-4.2.3 for Windows
RStudio-2023.03.0-386

Do you have any experience with this failure?

Thank you!
Best regards
Gabor

  [[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more,

see

https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible

code.






   [[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide

http://www.R-project.org/posting-guide.html

and provide commented, minimal, self-contained, reproducible code.





 [[alternative HTML 

Re: [R] Package Caret

2023-04-16 Thread Gábor Malomsoki
Many thanks Bert, now is ok, i did not know that "Namensraum" should  mean
a package

Am So., 16. Apr. 2023 um 23:44 Uhr schrieb Bert Gunter <
bgunter.4...@gmail.com>:

> So update the vctrs package to the latest version first before loading
> R-tools (or the caret package, specifically)?
>
> -- Bert
>
> On Sun, Apr 16, 2023 at 1:57 PM Gábor Malomsoki
>  wrote:
> >
> > I have newly installed R, R-tools, RStudio, but still not working:
> >
> > library(caret)Lade nötiges Paket: latticeError: Laden von Paket oder
> > Namensraum für ‘caret’ in loadNamespace(i, c(lib.loc, .libPaths()),
> > versionCheck = vI[[i]]): fehlgeschlagen
> >  Namensraum ‘vctrs’ 0.5.2 ist bereits geladen, aber >= 0.6.0 wird
> gefordert
> >
> >
> > Error in createDataPartition(hypotezis_df$X, p = 0.75, list = FALSE,
> > times = 1) :
> >   could not find function "createDataPartition"
> >
> >
> > R version 4.2.3 (2023-03-15 ucrt)
> > Platform: x86_64-w64-mingw32/x64 (64-bit)
> > Running under: Windows 10 x64 (build 19044)
> >
> > Matrix products: default
> >
> > locale:
> > [1] LC_COLLATE=German_Austria.utf8  LC_CTYPE=German_Austria.utf8
> > [3] LC_MONETARY=German_Austria.utf8 LC_NUMERIC=C
> > [5] LC_TIME=German_Austria.utf8
> >
> > attached base packages:
> > [1] stats graphics  grDevices utils datasets  methods   base
> >
> > other attached packages:
> >  [1] plotrix_3.8-2rgl_1.1.3scatterplot3d_0.3-43
> > lattice_0.20-45
> >  [5] knitr_1.42   GGally_2.1.2 fs_1.6.0
> > lubridate_1.9.2
> >  [9] forcats_1.0.0stringr_1.5.0dplyr_1.1.0
> > purrr_1.0.1
> > [13] readr_2.1.4  tidyr_1.3.0  tibble_3.1.8
> > ggplot2_3.4.2
> > [17] tidyverse_2.0.0
> >
> > loaded via a namespace (and not attached):
> >  [1] progress_1.2.2 tidyselect_1.2.0   xfun_0.36
> colorspace_2.1-0
> >  [5] vctrs_0.5.2generics_0.1.3 htmltools_0.5.4
> base64enc_0.1-3
> >  [9] utf8_1.2.2 rlang_1.1.0pillar_1.8.1   glue_1.6.2
> > [13] withr_2.5.0RColorBrewer_1.1-3 foreach_1.5.2
> lifecycle_1.0.3
> > [17] plyr_1.8.8 timeDate_4022.108  munsell_0.5.0
> gtable_0.3.1
> > [21] ragg_1.2.5 htmlwidgets_1.6.1  codetools_0.2-19
>  labeling_0.4.2
> > [25] fastmap_1.1.0  tzdb_0.3.0 fansi_1.0.4Rcpp_1.0.10
> > [29] scales_1.2.1   jsonlite_1.8.4 farver_2.1.1
>  systemfonts_1.0.4
> > [33] textshaping_0.3.6  digest_0.6.31  hms_1.1.2
> stringi_1.7.12
> > [37] grid_4.2.3 cli_3.6.0  tools_4.2.3
> magrittr_2.0.3
> > [41] crayon_1.5.2   pkgconfig_2.0.3ellipsis_0.3.2
>  Matrix_1.5-3
> > [45] prettyunits_1.1.1  timechange_0.2.0   gower_1.0.1
> reshape_0.8.9
> > [49] rstudioapi_0.14iterators_1.0.14   R6_2.5.1
>  nlme_3.1-162
> > [53] compiler_4.2.3
> >
> >
> > Am Fr., 14. Apr. 2023 um 11:24 Uhr schrieb Duncan Murdoch <
> > murdoch.dun...@gmail.com>:
> >
> > > You should post the result of running sessionInfo(), and tell us how
> you
> > > installed R.  Your installation seems very broken.
> > >
> > > Duncan Murdoch
> > >
> > > On 14/04/2023 3:45 a.m., Gábor Malomsoki wrote:
> > > > This is the error then:
> > > > error in prettyseq(1:ncol(out)) : could not find function "prettyseq"
> > > >
> > > >
> > > >
> > > >
> > > > Eric Berger  schrieb am Fr., 14. Apr. 2023,
> > > 09:06:
> > > >
> > > >> What happens if you do the following?
> > > >>> library(caret)
> > > >>> ?caret::createDataPartition
> > > >>
> > > >> i.e. to confirm that caret is loaded, seek help on this function
> > > >>
> > > >>
> > > >> On Fri, Apr 14, 2023 at 9:56 AM Gábor Malomsoki <
> > > gmalomsoki1...@gmail.com>
> > > >> wrote:
> > > >>
> > > >>> Eric,
> > > >>>
> > > >>> Yes, i know, i am calling the package, but this is not working.
> > > >>> I saw a similar question in Stackoverflow, advising install package
> > > Rcpp,
> > > >>> but this one i am unable to install.
> > > >>>
> > > >>> Eric Berger  schrieb am Fr., 14. Apr. 2023,
> > > 08:47:
> > > >>>
> > >  You first have to load the package using the library command.
> > > > library(caret)
> > > 
> > >  Then you can call createDataPartition. e.g.
> > > > data(oil)
> > > > createDataPartition(oilType,2)
> > > 
> > >  HTH,
> > >  Eric
> > > 
> > > 
> > >  On Fri, Apr 14, 2023 at 7:52 AM Gábor Malomsoki <
> > >  gmalomsoki1...@gmail.com> wrote:
> > > 
> > > > Dear all,
> > > > When i try to use createDataPartition after calling package
> 'caret',
> > > i
> > > > get
> > > > the message:
> > > > "could not find function createDataPartition"
> > > >
> > > > I use:
> > > > R-4.2.3 for Windows
> > > > RStudio-2023.03.0-386
> > > >
> > > > Do you have any experience with this failure?
> > > >
> > > > Thank you!
> > > > Best regards
> > > > Gabor
> > > >
> > > >  [[alternative HTML version deleted]]
> > > >
> > > > __
> > 

Re: [R] Package Caret

2023-04-16 Thread Bert Gunter
So update the vctrs package to the latest version first before loading
R-tools (or the caret package, specifically)?

-- Bert

On Sun, Apr 16, 2023 at 1:57 PM Gábor Malomsoki
 wrote:
>
> I have newly installed R, R-tools, RStudio, but still not working:
>
> library(caret)Lade nötiges Paket: latticeError: Laden von Paket oder
> Namensraum für ‘caret’ in loadNamespace(i, c(lib.loc, .libPaths()),
> versionCheck = vI[[i]]): fehlgeschlagen
>  Namensraum ‘vctrs’ 0.5.2 ist bereits geladen, aber >= 0.6.0 wird gefordert
>
>
> Error in createDataPartition(hypotezis_df$X, p = 0.75, list = FALSE,
> times = 1) :
>   could not find function "createDataPartition"
>
>
> R version 4.2.3 (2023-03-15 ucrt)
> Platform: x86_64-w64-mingw32/x64 (64-bit)
> Running under: Windows 10 x64 (build 19044)
>
> Matrix products: default
>
> locale:
> [1] LC_COLLATE=German_Austria.utf8  LC_CTYPE=German_Austria.utf8
> [3] LC_MONETARY=German_Austria.utf8 LC_NUMERIC=C
> [5] LC_TIME=German_Austria.utf8
>
> attached base packages:
> [1] stats graphics  grDevices utils datasets  methods   base
>
> other attached packages:
>  [1] plotrix_3.8-2rgl_1.1.3scatterplot3d_0.3-43
> lattice_0.20-45
>  [5] knitr_1.42   GGally_2.1.2 fs_1.6.0
> lubridate_1.9.2
>  [9] forcats_1.0.0stringr_1.5.0dplyr_1.1.0
> purrr_1.0.1
> [13] readr_2.1.4  tidyr_1.3.0  tibble_3.1.8
> ggplot2_3.4.2
> [17] tidyverse_2.0.0
>
> loaded via a namespace (and not attached):
>  [1] progress_1.2.2 tidyselect_1.2.0   xfun_0.36  colorspace_2.1-0
>  [5] vctrs_0.5.2generics_0.1.3 htmltools_0.5.4base64enc_0.1-3
>  [9] utf8_1.2.2 rlang_1.1.0pillar_1.8.1   glue_1.6.2
> [13] withr_2.5.0RColorBrewer_1.1-3 foreach_1.5.2  lifecycle_1.0.3
> [17] plyr_1.8.8 timeDate_4022.108  munsell_0.5.0  gtable_0.3.1
> [21] ragg_1.2.5 htmlwidgets_1.6.1  codetools_0.2-19   labeling_0.4.2
> [25] fastmap_1.1.0  tzdb_0.3.0 fansi_1.0.4Rcpp_1.0.10
> [29] scales_1.2.1   jsonlite_1.8.4 farver_2.1.1   
> systemfonts_1.0.4
> [33] textshaping_0.3.6  digest_0.6.31  hms_1.1.2  stringi_1.7.12
> [37] grid_4.2.3 cli_3.6.0  tools_4.2.3magrittr_2.0.3
> [41] crayon_1.5.2   pkgconfig_2.0.3ellipsis_0.3.2 Matrix_1.5-3
> [45] prettyunits_1.1.1  timechange_0.2.0   gower_1.0.1reshape_0.8.9
> [49] rstudioapi_0.14iterators_1.0.14   R6_2.5.1   nlme_3.1-162
> [53] compiler_4.2.3
>
>
> Am Fr., 14. Apr. 2023 um 11:24 Uhr schrieb Duncan Murdoch <
> murdoch.dun...@gmail.com>:
>
> > You should post the result of running sessionInfo(), and tell us how you
> > installed R.  Your installation seems very broken.
> >
> > Duncan Murdoch
> >
> > On 14/04/2023 3:45 a.m., Gábor Malomsoki wrote:
> > > This is the error then:
> > > error in prettyseq(1:ncol(out)) : could not find function "prettyseq"
> > >
> > >
> > >
> > >
> > > Eric Berger  schrieb am Fr., 14. Apr. 2023,
> > 09:06:
> > >
> > >> What happens if you do the following?
> > >>> library(caret)
> > >>> ?caret::createDataPartition
> > >>
> > >> i.e. to confirm that caret is loaded, seek help on this function
> > >>
> > >>
> > >> On Fri, Apr 14, 2023 at 9:56 AM Gábor Malomsoki <
> > gmalomsoki1...@gmail.com>
> > >> wrote:
> > >>
> > >>> Eric,
> > >>>
> > >>> Yes, i know, i am calling the package, but this is not working.
> > >>> I saw a similar question in Stackoverflow, advising install package
> > Rcpp,
> > >>> but this one i am unable to install.
> > >>>
> > >>> Eric Berger  schrieb am Fr., 14. Apr. 2023,
> > 08:47:
> > >>>
> >  You first have to load the package using the library command.
> > > library(caret)
> > 
> >  Then you can call createDataPartition. e.g.
> > > data(oil)
> > > createDataPartition(oilType,2)
> > 
> >  HTH,
> >  Eric
> > 
> > 
> >  On Fri, Apr 14, 2023 at 7:52 AM Gábor Malomsoki <
> >  gmalomsoki1...@gmail.com> wrote:
> > 
> > > Dear all,
> > > When i try to use createDataPartition after calling package 'caret',
> > i
> > > get
> > > the message:
> > > "could not find function createDataPartition"
> > >
> > > I use:
> > > R-4.2.3 for Windows
> > > RStudio-2023.03.0-386
> > >
> > > Do you have any experience with this failure?
> > >
> > > Thank you!
> > > Best regards
> > > Gabor
> > >
> > >  [[alternative HTML version deleted]]
> > >
> > > __
> > > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> > > https://stat.ethz.ch/mailman/listinfo/r-help
> > > PLEASE do read the posting guide
> > > http://www.R-project.org/posting-guide.html
> > > and provide commented, minimal, self-contained, reproducible code.
> > >
> > 
> > >
> > >   [[alternative HTML version deleted]]
> > >
> > > 

Re: [R] Package Caret

2023-04-16 Thread Gábor Malomsoki
I have newly installed R, R-tools, RStudio, but still not working:

library(caret)Lade nötiges Paket: latticeError: Laden von Paket oder
Namensraum für ‘caret’ in loadNamespace(i, c(lib.loc, .libPaths()),
versionCheck = vI[[i]]): fehlgeschlagen
 Namensraum ‘vctrs’ 0.5.2 ist bereits geladen, aber >= 0.6.0 wird gefordert


Error in createDataPartition(hypotezis_df$X, p = 0.75, list = FALSE,
times = 1) :
  could not find function "createDataPartition"


R version 4.2.3 (2023-03-15 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19044)

Matrix products: default

locale:
[1] LC_COLLATE=German_Austria.utf8  LC_CTYPE=German_Austria.utf8
[3] LC_MONETARY=German_Austria.utf8 LC_NUMERIC=C
[5] LC_TIME=German_Austria.utf8

attached base packages:
[1] stats graphics  grDevices utils datasets  methods   base

other attached packages:
 [1] plotrix_3.8-2rgl_1.1.3scatterplot3d_0.3-43
lattice_0.20-45
 [5] knitr_1.42   GGally_2.1.2 fs_1.6.0
lubridate_1.9.2
 [9] forcats_1.0.0stringr_1.5.0dplyr_1.1.0
purrr_1.0.1
[13] readr_2.1.4  tidyr_1.3.0  tibble_3.1.8
ggplot2_3.4.2
[17] tidyverse_2.0.0

loaded via a namespace (and not attached):
 [1] progress_1.2.2 tidyselect_1.2.0   xfun_0.36  colorspace_2.1-0
 [5] vctrs_0.5.2generics_0.1.3 htmltools_0.5.4base64enc_0.1-3
 [9] utf8_1.2.2 rlang_1.1.0pillar_1.8.1   glue_1.6.2
[13] withr_2.5.0RColorBrewer_1.1-3 foreach_1.5.2  lifecycle_1.0.3
[17] plyr_1.8.8 timeDate_4022.108  munsell_0.5.0  gtable_0.3.1
[21] ragg_1.2.5 htmlwidgets_1.6.1  codetools_0.2-19   labeling_0.4.2
[25] fastmap_1.1.0  tzdb_0.3.0 fansi_1.0.4Rcpp_1.0.10
[29] scales_1.2.1   jsonlite_1.8.4 farver_2.1.1   systemfonts_1.0.4
[33] textshaping_0.3.6  digest_0.6.31  hms_1.1.2  stringi_1.7.12
[37] grid_4.2.3 cli_3.6.0  tools_4.2.3magrittr_2.0.3
[41] crayon_1.5.2   pkgconfig_2.0.3ellipsis_0.3.2 Matrix_1.5-3
[45] prettyunits_1.1.1  timechange_0.2.0   gower_1.0.1reshape_0.8.9
[49] rstudioapi_0.14iterators_1.0.14   R6_2.5.1   nlme_3.1-162
[53] compiler_4.2.3


Am Fr., 14. Apr. 2023 um 11:24 Uhr schrieb Duncan Murdoch <
murdoch.dun...@gmail.com>:

> You should post the result of running sessionInfo(), and tell us how you
> installed R.  Your installation seems very broken.
>
> Duncan Murdoch
>
> On 14/04/2023 3:45 a.m., Gábor Malomsoki wrote:
> > This is the error then:
> > error in prettyseq(1:ncol(out)) : could not find function "prettyseq"
> >
> >
> >
> >
> > Eric Berger  schrieb am Fr., 14. Apr. 2023,
> 09:06:
> >
> >> What happens if you do the following?
> >>> library(caret)
> >>> ?caret::createDataPartition
> >>
> >> i.e. to confirm that caret is loaded, seek help on this function
> >>
> >>
> >> On Fri, Apr 14, 2023 at 9:56 AM Gábor Malomsoki <
> gmalomsoki1...@gmail.com>
> >> wrote:
> >>
> >>> Eric,
> >>>
> >>> Yes, i know, i am calling the package, but this is not working.
> >>> I saw a similar question in Stackoverflow, advising install package
> Rcpp,
> >>> but this one i am unable to install.
> >>>
> >>> Eric Berger  schrieb am Fr., 14. Apr. 2023,
> 08:47:
> >>>
>  You first have to load the package using the library command.
> > library(caret)
> 
>  Then you can call createDataPartition. e.g.
> > data(oil)
> > createDataPartition(oilType,2)
> 
>  HTH,
>  Eric
> 
> 
>  On Fri, Apr 14, 2023 at 7:52 AM Gábor Malomsoki <
>  gmalomsoki1...@gmail.com> wrote:
> 
> > Dear all,
> > When i try to use createDataPartition after calling package 'caret',
> i
> > get
> > the message:
> > "could not find function createDataPartition"
> >
> > I use:
> > R-4.2.3 for Windows
> > RStudio-2023.03.0-386
> >
> > Do you have any experience with this failure?
> >
> > Thank you!
> > Best regards
> > Gabor
> >
> >  [[alternative HTML version deleted]]
> >
> > __
> > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide
> > http://www.R-project.org/posting-guide.html
> > and provide commented, minimal, self-contained, reproducible code.
> >
> 
> >
> >   [[alternative HTML version deleted]]
> >
> > __
> > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> > and provide commented, minimal, self-contained, reproducible code.
>
>

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To 

Re: [R] Package Caret

2023-04-14 Thread Duncan Murdoch
You should post the result of running sessionInfo(), and tell us how you 
installed R.  Your installation seems very broken.


Duncan Murdoch

On 14/04/2023 3:45 a.m., Gábor Malomsoki wrote:

This is the error then:
error in prettyseq(1:ncol(out)) : could not find function "prettyseq"




Eric Berger  schrieb am Fr., 14. Apr. 2023, 09:06:


What happens if you do the following?

library(caret)
?caret::createDataPartition


i.e. to confirm that caret is loaded, seek help on this function


On Fri, Apr 14, 2023 at 9:56 AM Gábor Malomsoki 
wrote:


Eric,

Yes, i know, i am calling the package, but this is not working.
I saw a similar question in Stackoverflow, advising install package Rcpp,
but this one i am unable to install.

Eric Berger  schrieb am Fr., 14. Apr. 2023, 08:47:


You first have to load the package using the library command.

library(caret)


Then you can call createDataPartition. e.g.

data(oil)
createDataPartition(oilType,2)


HTH,
Eric


On Fri, Apr 14, 2023 at 7:52 AM Gábor Malomsoki <
gmalomsoki1...@gmail.com> wrote:


Dear all,
When i try to use createDataPartition after calling package 'caret', i
get
the message:
"could not find function createDataPartition"

I use:
R-4.2.3 for Windows
RStudio-2023.03.0-386

Do you have any experience with this failure?

Thank you!
Best regards
Gabor

 [[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.





[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Package Caret

2023-04-14 Thread Eric Berger
prettyseq() is in the seqinr package. That seems to usher in a lot of other
issues.

How about caTools::sample.split() ?   (I have never used it, I just learned
about it from a search)

https://rdrr.io/cran/caTools/src/R/sample.split.R

Good luck,
Eric


On Fri, Apr 14, 2023 at 10:50 AM Gábor Malomsoki 
wrote:

> Or is there any similar function to split the dataframe to trainDF and
> testDF?
>
> Gábor Malomsoki  schrieb am Fr., 14. Apr. 2023,
> 09:45:
>
>>
>> This is the error then:
>> error in prettyseq(1:ncol(out)) : could not find function "prettyseq"
>>
>>
>>
>>
>> Eric Berger  schrieb am Fr., 14. Apr. 2023, 09:06:
>>
>>> What happens if you do the following?
>>> > library(caret)
>>> > ?caret::createDataPartition
>>>
>>> i.e. to confirm that caret is loaded, seek help on this function
>>>
>>>
>>> On Fri, Apr 14, 2023 at 9:56 AM Gábor Malomsoki <
>>> gmalomsoki1...@gmail.com> wrote:
>>>
 Eric,

 Yes, i know, i am calling the package, but this is not working.
 I saw a similar question in Stackoverflow, advising install package
 Rcpp, but this one i am unable to install.

 Eric Berger  schrieb am Fr., 14. Apr. 2023,
 08:47:

> You first have to load the package using the library command.
> > library(caret)
>
> Then you can call createDataPartition. e.g.
> > data(oil)
> > createDataPartition(oilType,2)
>
> HTH,
> Eric
>
>
> On Fri, Apr 14, 2023 at 7:52 AM Gábor Malomsoki <
> gmalomsoki1...@gmail.com> wrote:
>
>> Dear all,
>> When i try to use createDataPartition after calling package 'caret',
>> i get
>> the message:
>> "could not find function createDataPartition"
>>
>> I use:
>> R-4.2.3 for Windows
>> RStudio-2023.03.0-386
>>
>> Do you have any experience with this failure?
>>
>> Thank you!
>> Best regards
>> Gabor
>>
>> [[alternative HTML version deleted]]
>>
>> __
>> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide
>> http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>>
>

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Package Caret

2023-04-14 Thread Gábor Malomsoki
Or is there any similar function to split the dataframe to trainDF and
testDF?

Gábor Malomsoki  schrieb am Fr., 14. Apr. 2023,
09:45:

>
> This is the error then:
> error in prettyseq(1:ncol(out)) : could not find function "prettyseq"
>
>
>
>
> Eric Berger  schrieb am Fr., 14. Apr. 2023, 09:06:
>
>> What happens if you do the following?
>> > library(caret)
>> > ?caret::createDataPartition
>>
>> i.e. to confirm that caret is loaded, seek help on this function
>>
>>
>> On Fri, Apr 14, 2023 at 9:56 AM Gábor Malomsoki 
>> wrote:
>>
>>> Eric,
>>>
>>> Yes, i know, i am calling the package, but this is not working.
>>> I saw a similar question in Stackoverflow, advising install package
>>> Rcpp, but this one i am unable to install.
>>>
>>> Eric Berger  schrieb am Fr., 14. Apr. 2023,
>>> 08:47:
>>>
 You first have to load the package using the library command.
 > library(caret)

 Then you can call createDataPartition. e.g.
 > data(oil)
 > createDataPartition(oilType,2)

 HTH,
 Eric


 On Fri, Apr 14, 2023 at 7:52 AM Gábor Malomsoki <
 gmalomsoki1...@gmail.com> wrote:

> Dear all,
> When i try to use createDataPartition after calling package 'caret', i
> get
> the message:
> "could not find function createDataPartition"
>
> I use:
> R-4.2.3 for Windows
> RStudio-2023.03.0-386
>
> Do you have any experience with this failure?
>
> Thank you!
> Best regards
> Gabor
>
> [[alternative HTML version deleted]]
>
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>


[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Package Caret

2023-04-14 Thread Gábor Malomsoki
This is the error then:
error in prettyseq(1:ncol(out)) : could not find function "prettyseq"




Eric Berger  schrieb am Fr., 14. Apr. 2023, 09:06:

> What happens if you do the following?
> > library(caret)
> > ?caret::createDataPartition
>
> i.e. to confirm that caret is loaded, seek help on this function
>
>
> On Fri, Apr 14, 2023 at 9:56 AM Gábor Malomsoki 
> wrote:
>
>> Eric,
>>
>> Yes, i know, i am calling the package, but this is not working.
>> I saw a similar question in Stackoverflow, advising install package Rcpp,
>> but this one i am unable to install.
>>
>> Eric Berger  schrieb am Fr., 14. Apr. 2023, 08:47:
>>
>>> You first have to load the package using the library command.
>>> > library(caret)
>>>
>>> Then you can call createDataPartition. e.g.
>>> > data(oil)
>>> > createDataPartition(oilType,2)
>>>
>>> HTH,
>>> Eric
>>>
>>>
>>> On Fri, Apr 14, 2023 at 7:52 AM Gábor Malomsoki <
>>> gmalomsoki1...@gmail.com> wrote:
>>>
 Dear all,
 When i try to use createDataPartition after calling package 'caret', i
 get
 the message:
 "could not find function createDataPartition"

 I use:
 R-4.2.3 for Windows
 RStudio-2023.03.0-386

 Do you have any experience with this failure?

 Thank you!
 Best regards
 Gabor

 [[alternative HTML version deleted]]

 __
 R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
 https://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide
 http://www.R-project.org/posting-guide.html
 and provide commented, minimal, self-contained, reproducible code.

>>>

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Package Caret

2023-04-14 Thread Eric Berger
What happens if you do the following?
> library(caret)
> ?caret::createDataPartition

i.e. to confirm that caret is loaded, seek help on this function


On Fri, Apr 14, 2023 at 9:56 AM Gábor Malomsoki 
wrote:

> Eric,
>
> Yes, i know, i am calling the package, but this is not working.
> I saw a similar question in Stackoverflow, advising install package Rcpp,
> but this one i am unable to install.
>
> Eric Berger  schrieb am Fr., 14. Apr. 2023, 08:47:
>
>> You first have to load the package using the library command.
>> > library(caret)
>>
>> Then you can call createDataPartition. e.g.
>> > data(oil)
>> > createDataPartition(oilType,2)
>>
>> HTH,
>> Eric
>>
>>
>> On Fri, Apr 14, 2023 at 7:52 AM Gábor Malomsoki 
>> wrote:
>>
>>> Dear all,
>>> When i try to use createDataPartition after calling package 'caret', i
>>> get
>>> the message:
>>> "could not find function createDataPartition"
>>>
>>> I use:
>>> R-4.2.3 for Windows
>>> RStudio-2023.03.0-386
>>>
>>> Do you have any experience with this failure?
>>>
>>> Thank you!
>>> Best regards
>>> Gabor
>>>
>>> [[alternative HTML version deleted]]
>>>
>>> __
>>> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
>>> https://stat.ethz.ch/mailman/listinfo/r-help
>>> PLEASE do read the posting guide
>>> http://www.R-project.org/posting-guide.html
>>> and provide commented, minimal, self-contained, reproducible code.
>>>
>>

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Package Caret

2023-04-14 Thread Gábor Malomsoki
Eric,

Yes, i know, i am calling the package, but this is not working.
I saw a similar question in Stackoverflow, advising install package Rcpp,
but this one i am unable to install.

Eric Berger  schrieb am Fr., 14. Apr. 2023, 08:47:

> You first have to load the package using the library command.
> > library(caret)
>
> Then you can call createDataPartition. e.g.
> > data(oil)
> > createDataPartition(oilType,2)
>
> HTH,
> Eric
>
>
> On Fri, Apr 14, 2023 at 7:52 AM Gábor Malomsoki 
> wrote:
>
>> Dear all,
>> When i try to use createDataPartition after calling package 'caret', i get
>> the message:
>> "could not find function createDataPartition"
>>
>> I use:
>> R-4.2.3 for Windows
>> RStudio-2023.03.0-386
>>
>> Do you have any experience with this failure?
>>
>> Thank you!
>> Best regards
>> Gabor
>>
>> [[alternative HTML version deleted]]
>>
>> __
>> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide
>> http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>>
>

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Package Caret

2023-04-14 Thread Eric Berger
You first have to load the package using the library command.
> library(caret)

Then you can call createDataPartition. e.g.
> data(oil)
> createDataPartition(oilType,2)

HTH,
Eric


On Fri, Apr 14, 2023 at 7:52 AM Gábor Malomsoki 
wrote:

> Dear all,
> When i try to use createDataPartition after calling package 'caret', i get
> the message:
> "could not find function createDataPartition"
>
> I use:
> R-4.2.3 for Windows
> RStudio-2023.03.0-386
>
> Do you have any experience with this failure?
>
> Thank you!
> Best regards
> Gabor
>
> [[alternative HTML version deleted]]
>
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.