Questions tagged [vctrs]

Use this tag to questions related to vctrs (a developer-focused package for R).

41 questions
0
votes
1 answer

R Error: "Error: Can't combine `..1` and `..2` ."

I am working on a research project and trying to visualize an OLS model. Here is my code: #install.packages("dplyr") library(foreign) #install.packages("tidyverse", dependencies =…
Andrew Liebman
  • 1
  • 1
  • 1
  • 2
0
votes
1 answer

How can I apply custom-formatting to tibble list-columns using vctrs?

I am creating a new vctrs S3 class using new_list_of() but I can't find a way to control the printing of this class when used in tibbles. Here is a minimal example using a toy 'fruit_bowl' class. Ideally I'd like the columns to show the output of…
wurli
  • 2,314
  • 10
  • 17
0
votes
0 answers

On new computer, read_spss() is suddenly leading all of my code to result in: Can't combine `..1` and `..2`

in R, read_spss() was working perfectly for importing a data set, but I just transferred all of the code over to my new MacBook, and now none of the code works -- it all generates this error message: Error: Can't combine ..1 and ..2 . Does anyone…
EricS
  • 1
  • 1
0
votes
1 answer

`vec_arith` double dispatch error with packages

I'm trying to implement the vctrs package, but specifically I'm trying to get the vec_arith double dispatch working. The example code below works if I load this into the global environment, however it does not seem to find the correct dispatch if…
Justin Landis
  • 1,981
  • 7
  • 9
0
votes
1 answer

R - Counting elements in a vector

is there a way to count elements in a vector, without considering its unique values? For example, I have a vector vec <- as.vector(c("A","A","B","B","A","A","B","B")). I want to count the elements in the vector so it will return a vector of [1] 2 2…
debster
  • 333
  • 2
  • 10
0
votes
0 answers

Unlist behaviour on vctr_rcrd class objects

I have a vctr_record type object that I want to serve as input for code I can't/shouldn't change. The problem I'm having is, that the lapply-then-unlist behaviour in that code is causing my vctr_record type object to be flattened. However that is…
teunbrand
  • 33,645
  • 4
  • 37
  • 63
0
votes
0 answers

Which version of R is compatible with the newest version of Blavaan (August 3rd, 2019)?

I would like to use blavaan (version 0.3-5) for my analysis. Installing the package blavaan seems to work (i.e., no error messages), but when I try to load the library 'blavaan', I receive the following error message: Error: package or namespace…
Mar-05
  • 1
0
votes
1 answer

R package for fixed length vectors

I'd like to have fixed length/dimensions vectors/matrices in R. Pseudocode: foo <- fixed_character(LETTERS, length = 26) foo <- LETTERS[1:10] # throws an error, wrong length bar <- fixed_matrix(NA, 6, 2) bar <- matrix(1:12, 3, 4) # wrong…
dash2
  • 2,024
  • 6
  • 15
0
votes
1 answer

Not able to install dplyr in R 3.2.1

I am not able to install dplyr. I have the following answer after trying the installation There are binary versions available but the source versions are later: binary source needs_compilation backports 1.0.3 1.1.4 …
anasavilu
  • 1
  • 2
0
votes
1 answer

Tidy type casting of tibble columns based on target type specification

Is there a recommended way of "tidy type casting", i.e. of coercing the columns of a tibble to desired types/classes based on a target specification? Since vctrs seems to come up with new tidy "nuts and bolds" for vectors, I'd probably prefer a…
Rappster
  • 12,762
  • 7
  • 71
  • 120
-1
votes
1 answer

How can I solve 'vctrs' update problem running 'car' packages?

library(carData) library(car) Error: package or namespace load failed for ‘car’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]): namespace ‘vctrs’ 0.2.0 is being loaded, but >= 0.2.1 is required
1 2
3