psych Questions

7

Solved

I'm trying to bundle install a rails project but I'm stuck... when I try to run gem install psych all I get is this: Building native extensions. This could take a while... ERROR: Error installing ...
Bellabelladonna asked 20/2, 2013 at 17:55

2

Every to_yaml output have three leading dashes: --- a: b: c: soemthing How convert object to yaml without leading dashes?
Kippar asked 19/6, 2014 at 10:4

2

Solved

I have a data frame such as follows: x <- c(1, 2, 1, 2) y <- c(1, 2, 3, 4) z <- c(4, 3, 2, 1) df <- data.frame(x, y, z) I am running a factor analysis with the fa funciton from the p...
Manifestative asked 10/11, 2018 at 13:23

4

Solved

I am using the psych package's fa command for factor analysis, and so have an object of class fa. I can query the loadings with fac$loadings, but I want to only extract the table containing the loa...
Shoreless asked 23/3, 2013 at 10:51

1

I want to adjust the function's parameters so that the items don't overlap. I've tried changing the rsize, e.size and gap.size but nothing works. Any ideas?
Serg asked 22/6, 2021 at 21:47

3

Solved

When I want to install compass with gem install compass, I occurred with this error: YAML safe loading is not available. Please upgrade psych to a version that supports safe loading (>= 2.0). ...
Avernus asked 24/10, 2017 at 5:43

1

Solved

I'm using the psych package for factor analysis. I want to specify the labels of the latent factors, either in the fa() object, or when graphing with fa.diagram(). For example, with toy data: req...
Speculum asked 23/5, 2018 at 17:59

2

Solved

I am looking for a way to emit YAML files avoiding the use of aliases (mostly for simplified human readability). I think extending Psych::Visitors::Emitter or Psych::Visitors::Visitor is the way t...
Veto asked 1/7, 2014 at 10:46

3

Solved

I’m implementing paper trail like feature in my rails app. In order to do this, I’m serializing object in YAML. I’ve got item_at_version method, which basically does YAML::load(cached_object) – thi...
Ironsmith asked 6/12, 2012 at 18:43

3

Solved

This question has been asked before: Read and write YAML files without destroying anchors and aliases? I was wondering how to solve that problem with many anchors and aliases? thanks
Asberry asked 27/11, 2012 at 11:47

5

Solved

I'm running Ruby ruby 1.9.3p125 and I keep getting this error which is making it impossible for me to do any kind of development in Rails. It seems your ruby installation is missing psych (for ...
Exploratory asked 26/3, 2012 at 22:33

3

Solved

Psych is the default yaml engine since ruby 1.9.3 Why, oh why does psych add a line break in its output? Check the example below. ruby -v # => ruby 1.9.3p374 (2013-01-15 revision 38858) [x86_6...
Leeuwenhoek asked 25/7, 2013 at 13:46

5

Solved

I get the following error when running rspec after I added the vcr gem. Simply running gem install psych -- --enable-bundled-libyaml as suggested doesn't solve the problem. I am using rbenv and rub...
Huygens asked 7/4, 2014 at 17:36

1

Solved

I'm using psych::principal in another function, with various rotate functions passed to principal. (principal offers many rotation options and passes them on to different other functions). I need ...
Blinnie asked 22/8, 2015 at 14:6

2

Solved

Suppose I have two matrices of PCA loadings loa.orig, and loa.rot, and I know that loa.rot is a rotation (by-hand or otherwise) of loa.orig. (loa.orig might also have been already orthogonally rot...
Catsup asked 18/7, 2015 at 12:35

6

Solved

I just installed a clean Mavericks installation with Homebrew and RVM. Both brew doctor and rvm requirements return "all good", however, when I run bundle install in my project dir most of my gems ...
Boanerges asked 11/2, 2014 at 0:33

1

Solved

My question is concerned with the principal() function in psych package. set.seed(0) x <- replicate(8, rnorm(10)) pca.x <- principal(x, nf=4, rotate="varimax") I know if I want to see the ...
Dmz asked 20/2, 2015 at 18:10

3

According to http://yaml.org/spec/current.html#id2509980 comments in YAML files are a presentational detail and must not be in the serialization/representation graph ( http://yaml.org/spec/current....
Woodcutter asked 31/7, 2012 at 6:52

4

Solved

I am getting this error message: "It seems your ruby installation is missing psych (for YAML output). To eliminate this warning, please install libyaml and reinstall your ruby." I have tried ent...
Laudable asked 1/5, 2012 at 1:26

1

Solved

I receive this message during capistrano deploy of my rails project: syck has been removed, psych is used instead Versions: gem 'rails', '=3.2.13' ruby 2.0.0p247 As i know ruby use native yam...
Holp asked 8/10, 2013 at 12:4

2

Solved

Does anyone know how to export describe.by statistics to csv in R? I get this message: estatistica <- describe.by(pag,list(pag$Jogo) write.table(estatistica,file="H:/Myfile.csv",sep=",") "Er...
Wexler asked 29/4, 2013 at 13:18

2

Solved

/usr/share/ruby-rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/i686-linux/psych.so: warning: already initialized constant ANY /usr/share/ruby-rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/i686-linux/psych.s...
Petrapetracca asked 17/10, 2012 at 17:23

1

Solved

I encountered a weird problem while using ActiveRecord::Store module in my Ruby on Rails app. As I understand, this module use 'serialize' method under the hood so it just serialize your data to ya...
Jana asked 7/11, 2012 at 20:33

2

Solved

Ruby 1.9.3 defaults to using Psych for YAML. While the ruby-doc documentation for it is completely lacking, I was able to find one external piece of documentation that hinted that the indentation o...
Hierarch asked 18/3, 2012 at 14:53

1

Solved

I have a big string of formatted data (e.g. JSON) that I want to dump to YAML using Psych in ruby while preserving formatting. Basically, I want for JSON to appear in YAML using literal style: --...
Corr asked 9/3, 2012 at 20:7

© 2022 - 2024 — McMap. All rights reserved.