Hi all, I used to use fwrite() function in data.table but I cannot get it to work now. The function is not in the data.table package, even though a help page exists for it. My session info is below. Any ideas on how to get fwrite() to work would be much appreciated. Thanks!> sessionInfo()R version 3.2.0 (2015-04-16) Platform: x86_64-unknown-linux-gnu (64-bit) Running under: Red Hat Enterprise Linux Server release 6.3 (Santiago) locale: [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8 LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 LC_PAPER=en_US.UTF-8 [8] LC_NAME=C LC_ADDRESS=C LC_TELEPHONE=C LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] data.table_1.10.5 loaded via a namespace (and not attached): [1] tools_3.2.0 chron_2.3-47 tcltk_3.2.0 -- Matthew C Keller Asst. Professor of Psychology University of Colorado at Boulder www.matthewckeller.com [[alternative HTML version deleted]]
You are asking about (a) a contributed package (b) for a package version that is not in CRAN and (c) an R version that is outdated, which stretches the definition of "on topic" here. Since that function does not appear to have been removed from that package (I am not installing a development version to test if it is broken for your benefit), I will throw out a guess that if you update R to 3.4.1 or 3.4.2 then things might start working. If not, I suggest you use the CRAN version of the package and create a reproducible example (check it with package reprex) and try again here, or ask one of the maintainers of that package. -- Sent from my phone. Please excuse my brevity. On October 2, 2017 8:56:46 AM PDT, Matthew Keller <mckellercran at gmail.com> wrote:>Hi all, > >I used to use fwrite() function in data.table but I cannot get it to >work >now. The function is not in the data.table package, even though a help >page >exists for it. My session info is below. Any ideas on how to get >fwrite() >to work would be much appreciated. Thanks! > >> sessionInfo() >R version 3.2.0 (2015-04-16) >Platform: x86_64-unknown-linux-gnu (64-bit) >Running under: Red Hat Enterprise Linux Server release 6.3 (Santiago) > >locale: > [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C >LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8 >LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 >LC_PAPER=en_US.UTF-8 > [8] LC_NAME=C LC_ADDRESS=C >LC_TELEPHONE=C LC_MEASUREMENT=en_US.UTF-8 >LC_IDENTIFICATION=C > >attached base packages: >[1] stats graphics grDevices utils datasets methods base > >other attached packages: >[1] data.table_1.10.5 > >loaded via a namespace (and not attached): >[1] tools_3.2.0 chron_2.3-47 tcltk_3.2.0
Thanks Jeff! It turns out that my problem was that I tried to install the newest data.table package while the old data.table package was loaded in R. Full instructions for installing data.table are here: https://github.com/Rdatatable/data.table/wiki/Installation On Mon, Oct 2, 2017 at 10:55 AM, Jeff Newmiller <jdnewmil at dcn.davis.ca.us> wrote:> You are asking about (a) a contributed package (b) for a package version > that is not in CRAN and (c) an R version that is outdated, which stretches > the definition of "on topic" here. Since that function does not appear to > have been removed from that package (I am not installing a development > version to test if it is broken for your benefit), I will throw out a guess > that if you update R to 3.4.1 or 3.4.2 then things might start working. If > not, I suggest you use the CRAN version of the package and create a > reproducible example (check it with package reprex) and try again here, or > ask one of the maintainers of that package. > -- > Sent from my phone. Please excuse my brevity. > > On October 2, 2017 8:56:46 AM PDT, Matthew Keller <mckellercran at gmail.com> > wrote: > >Hi all, > > > >I used to use fwrite() function in data.table but I cannot get it to > >work > >now. The function is not in the data.table package, even though a help > >page > >exists for it. My session info is below. Any ideas on how to get > >fwrite() > >to work would be much appreciated. Thanks! > > > >> sessionInfo() > >R version 3.2.0 (2015-04-16) > >Platform: x86_64-unknown-linux-gnu (64-bit) > >Running under: Red Hat Enterprise Linux Server release 6.3 (Santiago) > > > >locale: > > [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C > >LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8 > >LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 > >LC_PAPER=en_US.UTF-8 > > [8] LC_NAME=C LC_ADDRESS=C > >LC_TELEPHONE=C LC_MEASUREMENT=en_US.UTF-8 > >LC_IDENTIFICATION=C > > > >attached base packages: > >[1] stats graphics grDevices utils datasets methods base > > > >other attached packages: > >[1] data.table_1.10.5 > > > >loaded via a namespace (and not attached): > >[1] tools_3.2.0 chron_2.3-47 tcltk_3.2.0 >-- Matthew C Keller Asst. Professor of Psychology University of Colorado at Boulder www.matthewckeller.com [[alternative HTML version deleted]]