Displaying 11 results from an estimated 11 matches for "create_matrix".
2018 May 25
2
readLines function with R >= 3.5.0
Dear all,
I would like to draw you attention to this question on SO:
https://stackoverflow.com/questions/50372043/readlines-function-with-new-version-of-r
Based on the OP's code I used the script
#######################################
create_matrix <- function() {
cat("Write the numbers of vertices: ")
user_input <- readLines("stdin", n=1)
user_input <- as.numeric(user_input)
print(user_input)
}
create_matrix()
#######################################
and called it with "R -f ..." from the comm...
2018 May 28
2
readLines function with R >= 3.5.0
..., I would like to draw you attention to this
>> question on SO:
>> https://stackoverflow.com/questions/50372043/readlines-function-with-new-version-of-r
>> Based on the OP's code I used the script
>> #######################################
>> create_matrix <- function() {
>> cat("Write the numbers of vertices: ")
>> user_input <- readLines("stdin", n=1)
>> user_input <- as.numeric(user_input)
>> print(user_input)
>> }
>> create_matrix()
>> #############...
2018 Jun 12
2
readLines function with R >= 3.5.0
...estion on SO:
>> >>
https://stackoverflow.com/questions/50372043/readlines-function-with-new-version-of-r
>>
>>
>> >> Based on the OP's code I used the script
>>
>> >> #######################################
>> >> create_matrix <- function() {
>> >> cat("Write the numbers of vertices: ")
>> >> user_input <- readLines("stdin", n=1)
>> >> user_input <- as.numeric(user_input)
>> >> print(user_input)
>> >> }
>>...
2018 Jun 13
2
readLines function with R >= 3.5.0
...uestions/50372043/readlines-function-with-new-version-of-r
>>>>
>>>>
>>>> >> Based on the OP's code I used the script
>>>>
>>>> >> #######################################
>>>> >> create_matrix <- function() { >> cat("Write the
>>>> numbers of vertices: ") >> user_input <-
>>>> readLines("stdin", n=1) >> user_input <-
>>>> as.numeric(user_input) >> print(user_input) >> } >>...
2018 Jun 19
1
readLines function with R >= 3.5.0
...r
> > >>>>
> > >>>>
> > >>>> >> Based on the OP's code I used the script
> > >>>>
> > >>>> >> #######################################
> > >>>> >> create_matrix <- function() { >> cat("Write the
> > >>>> numbers of vertices: ") >> user_input <-
> > >>>> readLines("stdin", n=1) >> user_input <-
> > >>>> as.numeric(user_input) >> print(user_...
2018 May 28
5
readLines function with R >= 3.5.0
...ractive session but not when R -f
/ Rscript is used, since it does not wait for the user to input anything:
$ R -f readLines.R
R version 3.5.0 (2018-04-23) -- "Joy in Playing"
Copyright (C) 2018 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
[...]
> create_matrix <- function() {
+ cat("Write the numbers of vertices: ")
+ user_input <- readLines(stdin(), n=1)
+ user_input <- as.numeric(user_input)
+ print(user_input)
+ }
> create_matrix()
Write the numbers of vertices: numeric(0)
>
>>>>>>> Martin Maech...
2018 May 28
0
readLines function with R >= 3.5.0
...:
> Dear all, I would like to draw you attention to this
> question on SO:
> https://stackoverflow.com/questions/50372043/readlines-function-with-new-version-of-r
> Based on the OP's code I used the script
> #######################################
> create_matrix <- function() {
> cat("Write the numbers of vertices: ")
> user_input <- readLines("stdin", n=1)
> user_input <- as.numeric(user_input)
> print(user_input)
> }
> create_matrix()
> #######################################...
2018 May 28
0
readLines function with R >= 3.5.0
...is
> >> question on SO:
> >>
> https://stackoverflow.com/questions/50372043/readlines-function-with-new-version-of-r
>
>
> >> Based on the OP's code I used the script
>
> >> #######################################
> >> create_matrix <- function() {
> >> cat("Write the numbers of vertices: ")
> >> user_input <- readLines("stdin", n=1)
> >> user_input <- as.numeric(user_input)
> >> print(user_input)
> >> }
> >> create_matri...
2018 May 28
0
readLines function with R >= 3.5.0
...since it does not wait for the user to input anything:
> $ R -f readLines.R
> R version 3.5.0 (2018-04-23) -- "Joy in Playing"
> Copyright (C) 2018 The R Foundation for Statistical Computing
> Platform: x86_64-pc-linux-gnu (64-bit)
> [...]
>> create_matrix <- function() {
> + cat("Write the numbers of vertices: ")
> + user_input <- readLines(stdin(), n=1)
> + user_input <- as.numeric(user_input)
> + print(user_input)
> + }
>> create_matrix()
> Write the numbers of vertic...
2018 Jun 13
0
readLines function with R >= 3.5.0
...t;>
> https://stackoverflow.com/questions/50372043/readlines-function-with-new-version-of-r
>>>
>>>
>>> >> Based on the OP's code I used the script
>>>
>>> >> #######################################
>>> >> create_matrix <- function() {
>>> >> cat("Write the numbers of vertices: ")
>>> >> user_input <- readLines("stdin", n=1)
>>> >> user_input <- as.numeric(user_input)
>>> >> print(user_input)
>>> &...
2018 Jun 13
0
readLines function with R >= 3.5.0
...-function-with-new-version-of-r
> >>>>
> >>>>
> >>>> >> Based on the OP's code I used the script
> >>>>
> >>>> >> #######################################
> >>>> >> create_matrix <- function() { >> cat("Write the
> >>>> numbers of vertices: ") >> user_input <-
> >>>> readLines("stdin", n=1) >> user_input <-
> >>>> as.numeric(user_input) >> print(user_input) >>...